diff --git a/bench/config/templates/nginx.conf b/bench/config/templates/nginx.conf index 9df365f3..06fc0b2b 100644 --- a/bench/config/templates/nginx.conf +++ b/bench/config/templates/nginx.conf @@ -85,7 +85,7 @@ server { } location @webserver { - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Frappe-Site-Name {{ site_name }}; proxy_set_header Host $host;