Fix nginx configuration issues with variable expansion

This commit is contained in:
hex
2025-05-20 18:36:09 -07:00
parent 2dc48043eb
commit 2ad8a7487c
3 changed files with 15 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ server {
}
location / {
return 301 https://$$host$$request_uri;
return 301 https://$host$request_uri;
}
}
@@ -23,9 +23,9 @@ server {
location / {
proxy_pass http://web:8000;
proxy_set_header Host $$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;
proxy_set_header Host $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;
}
}