Add the port to the Host header

Without this, port 80 may be assumed, which would be incorrect.
This commit is contained in:
tcely 2025-02-27 08:59:21 -05:00 committed by GitHub
parent beeaafe246
commit e04562d8be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ http {
# Authentication and proxying
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host localhost;
proxy_set_header Host localhost:8080;
proxy_set_header X-Forwarded-Host $x_forwarded_host;
proxy_set_header X-Forwarded-Port $x_forwarded_port;
proxy_set_header X-Forwarded-Proto $x_forwarded_proto;