Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GeoServer web UI when behind a reverse proxy #1252

Open
gpeb2 opened this issue Jun 20, 2024 · 0 comments
Open

Fix GeoServer web UI when behind a reverse proxy #1252

gpeb2 opened this issue Jun 20, 2024 · 0 comments
Labels
bug Something isn't working infra-stack Infrastructure issues relating to the stack-manager, stack-data-uploader or the agent templates

Comments

@gpeb2
Copy link
Collaborator

gpeb2 commented Jun 20, 2024

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.

@gpeb2 gpeb2 added bug Something isn't working infra-stack Infrastructure issues relating to the stack-manager, stack-data-uploader or the agent templates labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infra-stack Infrastructure issues relating to the stack-manager, stack-data-uploader or the agent templates
Projects
None yet
Development

No branches or pull requests

1 participant