Add additional proxy headers to nginx config
This is required to have better log output.
This commit is contained in:
parent
82713dabce
commit
3416eb490c
1 changed files with 5 additions and 0 deletions
|
|
@ -15,5 +15,10 @@ server {
|
|||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:{{ site_port }};
|
||||
|
||||
proxy_set_header Host $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-Proto $scheme;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue