Add IP forwarding headers to nginx config (fixes #1318)

This commit is contained in:
Felix Ableitner 2020-12-15 15:01:37 +01:00
parent cb9a06e249
commit 998e824bd8

View file

@ -67,6 +67,11 @@ server {
proxy_pass $proxpass;
rewrite ^(.+)/+$ $1 permanent;
# Send actual client IP upstream
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# backend