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 swagger-ui behind a reverse proxy #59

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

groldan
Copy link
Member

@groldan groldan commented Mar 28, 2024

Despite spring-doc documentation on how to set up the swagger-ui behind a reverse proxy, the X-Forwarded-Prefix request header is not honored.

Fix by tweaking SpringDocAutoConfiguration to apply the prefix as appropriate.

@groldan groldan force-pushed the swaggerui_behind_reverse_proxy branch from 74eedea to 0b19433 Compare March 28, 2024 01:03
Despite spring-doc documentation on how to set up the swagger-ui behind
a reverse proxy, the X-Forwarded-Prefix request header is not honored.

Fix by tweaking `SpringDocAutoConfiguration` to apply the prefix as
appropriate.
@groldan groldan force-pushed the swaggerui_behind_reverse_proxy branch from 0b19433 to 5876f36 Compare March 28, 2024 01:14
@groldan groldan merged commit 694923a into geoserver:main Mar 28, 2024
4 checks passed
@groldan groldan deleted the swaggerui_behind_reverse_proxy branch March 28, 2024 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant