Add additional proxy headers to nginx config

This is required to have better log output.
This commit is contained in:
Ivo C.S. Wingelaar 2024-10-13 18:03:16 +02:00
parent 82713dabce
commit 3416eb490c
Signed by: ivo
GPG key ID: ABBED434F58D0AA3

View file

@ -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;
}
}