fix: use http_host for proxy Host header to preserve port in redirects

This commit is contained in:
pyr0ball 2026-05-05 12:04:56 -07:00
parent 4fb3b7d143
commit be7a076f34

View file

@ -11,7 +11,7 @@ server {
# Proxy API requests to FastAPI (Docker bridge, service name)
location /api/ {
proxy_pass http://api:8522;
proxy_set_header Host $host;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
}
}