From 95004de5e8c7a09429dc1fecdafb23b50f920f1a Mon Sep 17 00:00:00 2001 From: Sandro Date: Thu, 14 Mar 2024 22:56:55 +0100 Subject: [PATCH] docs/reverse-proxy: use standard map, correct X-Forwarded-Proto variable for nginx (#1790) --- docs/reverse-proxy.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/reverse-proxy.md b/docs/reverse-proxy.md index aab9f848..1f417c9b 100644 --- a/docs/reverse-proxy.md +++ b/docs/reverse-proxy.md @@ -33,8 +33,7 @@ The following example configuration can be used in your nginx setup, substitutin ```Nginx map $http_upgrade $connection_upgrade { - default keep-alive; - 'websocket' upgrade; + default upgrade; '' close; } @@ -61,7 +60,7 @@ server { proxy_buffering 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-Proto $http_x_forwarded_proto; + proxy_set_header X-Forwarded-Proto $scheme; add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always; } }