georchestra / geoserver_minimal_datadir

It is highly recommended to use this minimal data dir rather than letting geoserver create his own
0 stars 5 forks source link

datadir aligned with geoserver 2.15.x on master #9

Closed fvanderbiest closed 5 years ago

fvanderbiest commented 5 years ago

Now that we have 2.15 on master, we can take advantage of https://docs.geoserver.org/stable/en/user/configuration/globalsettings.html#use-headers-for-proxy-url to have dynamic capabilities url (eg: http if user requests the http service, https if the user requests the https service)

The drawback being the following:

curl -u testadmin:testadmin -k -s -H 'X-Forwarded-Host: truite' 'https://georchestra.mydomain.org/geoserver/wms?service=wms&request=getcapabilities' | grep OnlineResource
<OnlineResource xlink:type="simple" xlink:href="https://truite/geoserver/ows?SERVICE=WMS&amp;"/>

Which means we have to clean incoming X-Forwarded-* headers (hence on traefik for georchestra/docker)

fvanderbiest commented 5 years ago

To merge on geofence branch when done.

fvanderbiest commented 5 years ago

Note that, by default, traefik as Rerverse Proxy behaves nicely : it automatically adds X-Forwarded-Proto & X-Forwarded-Host headers.

fvanderbiest commented 5 years ago

To merge on geofence branch when done.

done