add proxy_pass Host and X-Forwarded-For headers to nginx example

This commit is contained in:
jesopo 2019-09-18 10:09:40 +01:00
parent 9d4830dd88
commit bbc2a0be51

View file

@ -8,6 +8,8 @@ server {
location / { location / {
proxy_pass http://localhost:5001; proxy_pass http://localhost:5001;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
} }
} }