From 4e26ca653cc028fc40201afa40e9b9a210f993ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20L=C3=B3pez?= Date: Wed, 17 Jun 2020 14:37:38 -0500 Subject: [PATCH] fix: use remote_addr instead of header ip --- build/common/nginx-default.conf.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/common/nginx-default.conf.template b/build/common/nginx-default.conf.template index f6e375fb..a50571ab 100644 --- a/build/common/nginx-default.conf.template +++ b/build/common/nginx-default.conf.template @@ -50,7 +50,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 $host; proxy_set_header Host $http_host;