Modify the Host value to $http_host in order to pass the port number while maintaining transparency.

Modify the Host value from $host to $http_host in order to pass the port number while maintaining transparency.
This commit is contained in:
loca1h0st 2024-08-21 12:42:29 +08:00 committed by GitHub
parent 63d06da8a8
commit 288df29b50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
add_header X-Served-By $host;
proxy_set_header Host $host;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;