From 2ebdc54ea23cb57e1fa7ee03420e3f34dca2363e Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 8 Jun 2024 23:31:06 +0200 Subject: Stop including old X-Forwarded-For and include port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nginx/theos_kyriasis_com.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nginx/theos_kyriasis_com.sls') diff --git a/nginx/theos_kyriasis_com.sls b/nginx/theos_kyriasis_com.sls index 61d3d41..d7f7bc0 100644 --- a/nginx/theos_kyriasis_com.sls +++ b/nginx/theos_kyriasis_com.sls @@ -84,7 +84,7 @@ nginx: - proxy_pass: https://127.0.0.1:6697 - proxy_redirect: 'off' - proxy_set_header: X-Real-IP $remote_addr - - proxy_set_header: X-Forwarded-For $proxy_add_x_forwarded_for + - proxy_set_header: 'X-Forwarded-For $remote_addr:$remote_port' - proxy_set_header: X-Forwarded-Host $server_name - location /prometheus/: @@ -93,7 +93,7 @@ nginx: - location /rspamd/: - proxy_pass: http://localhost:11334/ - proxy_set_header: Host $host - - proxy_set_header: X-Forwarded-For $proxy_add_x_forwarded_for + - proxy_set_header: 'X-Forwarded-For $remote_addr:$remote_port' # vim: ft=yaml et: -- cgit v1.2.3-70-g09d2