Compare commits

...

1 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
8618011b73 wger: Use $http_host for proxy Host header
Update the nginx config to set the proxied Host header from $http_host instead of $host. This preserves the original Host header sent by the client (including port) when forwarding requests, avoiding mismatches that can occur when $host omits the port or falls back to server_name.
2026-02-25 16:18:06 +01:00

View File

@@ -164,7 +164,7 @@ server {
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;