Post-login redirect ignores subpath when using USE_X_SETTINGS=1 behind reverse proxy #4070
matthewlenz
started this conversation in
General
Replies: 2 comments 4 replies
-
|
I'll park this is in discussions for now, we are doing exactly the same thing in production and it works. can you paste your whole nginx config? |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
@dgtlmoon ... Not asking you to learn nginx-proxy or anything but this does follow the instructions provided and like I said, ultimately everything works EXCEPT prefix query parameter generation for login/logout flow. The app works perfectly when going directly to /changedetection/ after logging in (even though it redirects me to the wrong location). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Title: Post-login redirect ignores subpath when using USE_X_SETTINGS=1 behind reverse proxy
Describe the bug
When changedetection.io is deployed at a subpath (e.g.
https://example.com/changedetection/) behind an nginx reverse proxy withUSE_X_SETTINGS=1and password protection enabled, a successful login redirects to the root domain (https://example.com/) instead of the correct subpath (https://example.com/changedetection/).The
X-Forwarded-Prefixheader is being set correctly by the proxy — asset loading, navigation, and the login form action (/changedetection/login) all work correctly. The issue is isolated to the post-login redirect.Version
0.54.9
How did you install?
Docker (
dgtlmoon/changedetection.io)To Reproduce
/changedetection/)USE_X_SETTINGS=1on the containerX-Forwarded-Prefix /changedetectionin the location blockhttps://example.com/instead ofhttps://example.com/changedetection/Expected behavior
After a successful login, the app should redirect to
https://example.com/changedetection/, honouring theX-Forwarded-Prefixheader.Additional context
The login form action is correctly generated as
/changedetection/login, soUSE_X_SETTINGS=1is partially working. General navigation and asset loading work correctly once the user manually returns to the subpath URL.Beta Was this translation helpful? Give feedback.
All reactions