Pass the actual Host header as X-Forwarded-Host in nginx config

This commit is contained in:
Nick Schmalenberger 2018-04-28 01:22:42 +00:00
parent e5454d6714
commit 8685feb4b7

View File

@ -29,7 +29,7 @@ server {
location / { location / {
proxy_pass http://127.0.0.1:8001; proxy_pass http://127.0.0.1:8001;
proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"'; add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';