From f1a6d0116921938e42634fa63a1c30c54cceb338 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 5 Sep 2023 21:56:03 +0200 Subject: [PATCH 1/3] Update nginx recommendations --- docs/content/administration/reverse-proxies.en-us.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/administration/reverse-proxies.en-us.md b/docs/content/administration/reverse-proxies.en-us.md index ca06636469fbf..563262ef98cca 100644 --- a/docs/content/administration/reverse-proxies.en-us.md +++ b/docs/content/administration/reverse-proxies.en-us.md @@ -29,10 +29,12 @@ server { location / { client_max_body_size 512M; proxy_pass http://localhost:3000; + proxy_set_header Connection $http_connection; + proxy_set_header Upgrade $http_upgrade; proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; } } ``` From affbf00601a862858fa7895834c6095f31829d02 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 5 Sep 2023 21:59:15 +0200 Subject: [PATCH 2/3] remove X-Forwarded-Host --- docs/content/administration/reverse-proxies.en-us.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/content/administration/reverse-proxies.en-us.md b/docs/content/administration/reverse-proxies.en-us.md index 563262ef98cca..e1852d84d187a 100644 --- a/docs/content/administration/reverse-proxies.en-us.md +++ b/docs/content/administration/reverse-proxies.en-us.md @@ -34,7 +34,6 @@ server { proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Host $host; } } ``` From 8ab1b8a9d98330dd0f2a64df209411de481e4539 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 6 Sep 2023 02:02:12 +0200 Subject: [PATCH 3/3] restore X-Real-IP --- docs/content/administration/reverse-proxies.en-us.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/administration/reverse-proxies.en-us.md b/docs/content/administration/reverse-proxies.en-us.md index e1852d84d187a..c141483700511 100644 --- a/docs/content/administration/reverse-proxies.en-us.md +++ b/docs/content/administration/reverse-proxies.en-us.md @@ -32,6 +32,7 @@ server { proxy_set_header Connection $http_connection; proxy_set_header Upgrade $http_upgrade; proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }