Skip to content

Commit

Permalink
[georchestra] use georchestra.fqdn for hostnameWhitelist in proxy.pro…
Browse files Browse the repository at this point in the history
…perties

follows georchestra/datadir#421
  • Loading branch information
landryb committed Dec 10, 2024
1 parent 62581f6 commit c51f336
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/georchestra/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
# - { file: geofence-geoserver.properties, war: geoserver, destdir: 'WEB-INF/classes' }
- { file: localConfig.json, war: mapstore, destdir: configs }
- { file: log4j2.properties, war: mapstore, destdir: "" }
- { file: proxy.properties, war: mapstore, destdir: "" }
- { file: log4j.properties, war: analytics, destdir: log4j }
- { file: cadastrapp.properties, war: cadastrapp, destdir: "" }
- { file: logback.xml, war: cadastrapp, destdir: "" }
Expand Down
2 changes: 1 addition & 1 deletion roles/georchestra/templates/mapstore/proxy.properties.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defaultStreamByteSize=1024

# hostnameWhitelist defines the accepted target hosts for the internal proxy.
# The list should be set to the hosts whose CORS headers do not allow direct access
hostnameWhitelist = demo.geo-solutions.it
hostnameWhitelist = {{ georchestra.fqdn }}

# mimetype whitelist limit the accepted values for the contentype header in response from the proxied host
mimetypeWhitelist = application/force-download,text/html,text/plain,application/xml,text/xml,application/vnd.ogc.sld+xml,application/vnd.ogc.gml,application/json,application/vnd.ogc.wms_xml,application/x-www-form-urlencoded,image/png,application/pdf,text/csv,application/zip,text/csv;charset=UTF-8
Expand Down

0 comments on commit c51f336

Please sign in to comment.