Merge pull request #109 from haiwen/nginx-http_host

nginx http_host
This commit is contained in:
Daniel Pan 2023-12-13 14:49:39 +08:00 committed by GitHub
commit 9f8e36afec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ server {
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host \$host;
proxy_set_header Host \$http_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-Host \$server_name;