From ee1f0f94a38f8b085450cc8f3905d2e14c705d5c Mon Sep 17 00:00:00 2001 From: Dimitri Huisman Date: Sat, 18 Mar 2023 09:17:21 +0000 Subject: [PATCH] Don't use the header when we don't need it. --- core/nginx/conf/proxy.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/core/nginx/conf/proxy.conf b/core/nginx/conf/proxy.conf index 32fc5ccf..2784ca4b 100644 --- a/core/nginx/conf/proxy.conf +++ b/core/nginx/conf/proxy.conf @@ -10,6 +10,7 @@ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-By $realip_remote_addr; {% else %} proxy_set_header X-Forwarded-For $remote_addr; +proxy_hide_header X-Forwarded-By; {% endif %} proxy_http_version 1.1; proxy_hide_header Forwarded;