Skip to content

Commit

Permalink
config at bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Sep 20, 2024
1 parent f7d461a commit 8d085fa
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 @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 8d085fa

Please sign in to comment.