-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
[BUG] Incorrect host being passed to application when this container is behind a reverse proxy #31
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
My current workaround is to add the following to my nginx reverse proxy to rewrite the response, but not ideal:
Edit: Added |
We've somehow missed the
I'll sort out a PR to update the readme. |
@thespad Hmm, I just tried that and still getting the same behaviour I put it both in docker environment variable and |
Looks like there's an upstream issue here alexjustesen/speedtest-tracker#1673 Not going to fiddle with the image until there's a clear resolution from it, but might give you some ideas. |
Interesting, so adding the I don't think its entirely an upstream issue since the redirect works correctly going to the container by IP address, eg. For now my workaround posted here works, so I guess I will continue to use that. Thanks for taking a look. |
Is there an existing issue for this?
Current Behavior
When using a reverse proxy, such as nginx, to proxy pass to this container the application is loading resources and redirecting with incorrect host.
For example, my reverse proxy is running on https://speedtest.mydomain.com:1443/. Then when going to
https://speedtest.mydomain.com:1443/
, the application will redirect tohttps://speedtest.mydomain.com/admin/login
(note missing port).Expected Behavior
Going to
https://speedtest.mydomain.com:1443/
should correctly redirect tohttps://speedtest.mydomain.com:1443/admin/login
.Steps To Reproduce
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: