Fix GeoServer web UI when behind a reverse proxy #1252
Labels
bug
Something isn't working
infra-stack
Infrastructure issues relating to the stack-manager, stack-data-uploader or the agent templates
Currently the GeoServer web UI doesn't work behind a reverse proxy.
Part of the fix is to change the value of the
"proxyBaseUrl"
set in theGeoServerService::updateSettings
method to: "${X-Forwarded-Proto}://${X-Forwarded-Host}${X-Forwarded-Path}/geoserver". This fixes the slashes and adds the GeoServer specificX-Forwarded-Path
variable. TheX-Forwarded-Path
variable also needs to be added to the Nginx config for the GeoServer "location", something like this:proxy_set_header X-Forwarded-Path $http_x_forwarded_path;
defaulting to the requested path by default.The text was updated successfully, but these errors were encountered: