From 53a8fedadc266a4ea9c02edc33480547857fc53b Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 19 Oct 2023 17:05:39 +0530 Subject: [PATCH] fix: override X-Forwarded-For address in bench manager --- bench/config/templates/bench_manager_nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/config/templates/bench_manager_nginx.conf b/bench/config/templates/bench_manager_nginx.conf index 4f8426c9..bab26e88 100644 --- a/bench/config/templates/bench_manager_nginx.conf +++ b/bench/config/templates/bench_manager_nginx.conf @@ -39,7 +39,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 {{ bench_manager_site_name }}; proxy_set_header Host {{ bench_manager_site_name }};