From 8d085fa78c1afb9d037d5f94b1964f42a1079481 Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Fri, 20 Sep 2024 05:10:14 +0000 Subject: [PATCH] config at bottom --- files/nginx/odk.conf.template | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/nginx/odk.conf.template b/files/nginx/odk.conf.template index 4f4afe45..701e7e1c 100644 --- a/files/nginx/odk.conf.template +++ b/files/nginx/odk.conf.template @@ -50,11 +50,6 @@ server { } location ~ ^/v\d { - # transparently follow 307 redirects - # See: https://serverfault.com/a/792035 - proxy_intercept_errors on; - error_page 307 = @transparent_proxy_no_auth; - proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://service:8383; proxy_redirect off; @@ -63,6 +58,11 @@ server { proxy_request_buffering on; proxy_buffering off; proxy_read_timeout 2m; + + # transparently follow 307 redirects + # See: https://serverfault.com/a/792035 + proxy_intercept_errors on; + error_page 307 = @transparent_proxy_no_auth; } location @transparent_proxy_no_auth {