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.
This commit is contained in:
CanbiZ (MickLesk)
2026-02-25 16:18:06 +01:00
parent 1a1e707db3
commit 8618011b73

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;