🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Fix #238: OIDC redirect_uri dropped the port on nonstandard ports
Omega (QA)cd5ea44addd0
diff --git a/nginx.conf b/nginx.confindex 28aced9..df960aa 100644--- a/nginx.conf+++ b/nginx.conf@@ -51,7 +51,10 @@ server {# Using ^~ to ensure this prefix match takes precedence over regex extension matcheslocation ^~ /api/ {proxy_pass http://127.0.0.1:5000; # Removed trailing slash to pass /api/ prefix- proxy_set_header Host $host;+ # Use $http_host (not $host) so the original client port is preserved.+ # $host drops the port, which broke OIDC redirect_uri generation+ # (issue #238) for anyone serving Warracker on a nonstandard port.+ proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto $scheme;