diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 0874be8f9..91fcd9318 100644 --- a/ansible/templates/nginx.conf +++ b/ansible/templates/nginx.conf @@ -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