Fix proto forwarded header to industry standard

This commit is contained in:
Jamie Curnow 2018-10-25 08:51:43 +10:00
parent eaebc48f66
commit c826ed8c1f

View File

@ -1,6 +1,6 @@
add_header X-Served-By $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://$server:$port;