Skip to content

For reverse proxies, add SWAGGER_HOST environment variable support #570

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

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

ksangers
Copy link

@ksangers ksangers commented Aug 3, 2024

I ran into the issue that I could not easily test this service behind a reverse proxy, because of the hard-coded IP:PORT set up. This should fix that. Please let me know if you need any other related changes before this can be accepted.

Changes:

  • Add SWAGGER_HOST environment variable to README.md for Swagger UI configuration.
  • Update main.go to use SWAGGER_HOST environment variable for Swagger UI host configuration.

- Add `SWAGGER_HOST` environment variable to `README.md` for Swagger UI configuration.
- Update `main.go` to use `SWAGGER_HOST` environment variable for Swagger UI host configuration.
@bbernhard bbernhard merged commit a6624c5 into bbernhard:master Aug 4, 2024
2 checks passed
@bbernhard
Copy link
Owner

Many thanks!

@ksangers
Copy link
Author

ksangers commented Aug 4, 2024

Cheers!

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.

2 participants