fix: use http_host for proxy Host header to preserve port in redirects
This commit is contained in:
parent
4fb3b7d143
commit
be7a076f34
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ server {
|
||||||
# Proxy API requests to FastAPI (Docker bridge, service name)
|
# Proxy API requests to FastAPI (Docker bridge, service name)
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://api:8522;
|
proxy_pass http://api:8522;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue