-
Notifications
You must be signed in to change notification settings - Fork 667
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
pgadmin does not respect reverse proxy any more #5507
Comments
Same problem here. The first wrong request for me is According to https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html I'm also a little confused about the nginx config. When I look at the Traefik config, it seems that the new path prefix must not be stripped away. That means we should not have slashes after location /pgadmin4/ {
proxy_set_header X-Script-Name /pgadmin4;
proxy_set_header X-Scheme $scheme;
proxy_set_header Host $host;
proxy_pass http://localhost:5050/;
proxy_redirect off;
} I think it should be location /pgadmin4 {
proxy_set_header X-Script-Name /pgadmin4;
proxy_set_header X-Scheme $scheme;
proxy_set_header Host $host;
proxy_pass http://localhost:5050;
proxy_redirect off;
} Update: |
Upon my trying the same, I am presented with the expected login screen. After successful login (no error message), rather than being redirected to something like the If I try going back to |
This may be related to a fix introduced in 6.14? |
Fixed in PR #5523 |
This is working fine . Verified with Desktop & Server mode configured with nginx reverse proxy. |
I can confirm: the bug is solved in 6.16. |
Hello,
I have an Nginx reverse proxy configuration something like
... that was working a few months ago (also cf. #4552).
Now it's broken, unfortunately. For example, shortly after clicking the login button, pgadmin calls many URLs not containing the
X-Script-Name
, as I can see in Chrome Devtools. For example:The text was updated successfully, but these errors were encountered: