Skip to content

Commit

Permalink
config in wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Sep 20, 2024
1 parent 8d085fa commit 0d25b53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions files/nginx/odk.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ server {
add_header Strict-Transport-Security "max-age=63072000" always;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options nosniff;

# transparently follow 307 redirects
# See: https://serverfault.com/a/792035
proxy_intercept_errors on;
error_page 307 = @transparent_proxy_no_auth;
}

location ~ ^/v\d {
Expand All @@ -58,11 +63,6 @@ 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 {
Expand Down

0 comments on commit 0d25b53

Please sign in to comment.