From 181228294600bc50e8f824d9329838d90f1171df Mon Sep 17 00:00:00 2001 From: mikiher Date: Sun, 12 Jan 2025 18:35:49 +0200 Subject: [PATCH] recommend using $http_host for ngnix --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index e62aba03..19ede3ce 100644 --- a/readme.md +++ b/readme.md @@ -111,8 +111,8 @@ server { location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Host $host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";