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 the GeoServerService::updateSettings method to: "${X-Forwarded-Proto}://${X-Forwarded-Host}${X-Forwarded-Path}/geoserver". This fixes the slashes and adds the GeoServer specific X-Forwarded-Path variable. The X-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.
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.