From 09515f26df9c3fb3a1ac98e041aa1178e616d84c Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Sat, 1 Jan 2022 23:08:58 +0100 Subject: [PATCH] Update nginx config --- docs/config.md | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/docs/config.md b/docs/config.md index ad180cf4..90e63e19 100644 --- a/docs/config.md +++ b/docs/config.md @@ -142,7 +142,7 @@ or the root domain: if ($request_method = GET) { set $redirect_https "yes"; } - if ($request_uri ~* "^/[-_a-z0-9]{0,64}$") { + if ($request_uri ~* "^/([-_a-z0-9]{0,64}$|docs/|static/)") { set $redirect_https "${redirect_https}yes"; } if ($redirect_https = "yesyes") { @@ -156,13 +156,11 @@ or the root domain: proxy_redirect off; proxy_set_header Host $http_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_connect_timeout 1m; - proxy_send_timeout 1m; - proxy_read_timeout 1m; + proxy_connect_timeout 3m; + proxy_send_timeout 3m; + proxy_read_timeout 3m; } } @@ -186,13 +184,11 @@ or the root domain: proxy_redirect off; proxy_set_header Host $http_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_connect_timeout 1m; - proxy_send_timeout 1m; - proxy_read_timeout 1m; + proxy_connect_timeout 3m; + proxy_send_timeout 3m; + proxy_read_timeout 3m; } } ```