From c51f33680055b7b482d3391752b7797af7bc7c86 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Tue, 10 Dec 2024 13:17:54 +0100 Subject: [PATCH] [georchestra] use georchestra.fqdn for hostnameWhitelist in proxy.properties follows georchestra/datadir#421 --- roles/georchestra/tasks/config.yml | 1 + roles/georchestra/templates/mapstore/proxy.properties.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/georchestra/tasks/config.yml b/roles/georchestra/tasks/config.yml index ff5d6bc..e149b74 100644 --- a/roles/georchestra/tasks/config.yml +++ b/roles/georchestra/tasks/config.yml @@ -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: "" } diff --git a/roles/georchestra/templates/mapstore/proxy.properties.j2 b/roles/georchestra/templates/mapstore/proxy.properties.j2 index 23f6432..4d35700 100644 --- a/roles/georchestra/templates/mapstore/proxy.properties.j2 +++ b/roles/georchestra/templates/mapstore/proxy.properties.j2 @@ -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