From 613ee0c6902fbb09f0eeb4df1219cf13e8ca32bf Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 21 Jan 2024 17:31:28 +0100 Subject: [PATCH] Update nginx.conf From linter - In nginx.conf : please don't use $http_host but $host instead. C.f. https://github.com/yandex/gixy/blob/master/docs/en/plugins/hostspoofing.md --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7f1ce15..2670423 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,7 @@ location @app_upstream { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;