🔧 Add proxy_next_upstream to retry finding hub

This commit is contained in:
tiptophelmet 2024-10-09 17:34:36 +03:00
parent 1eeed3e58e
commit 118b173069

View File

@ -33,6 +33,10 @@ data:
proxy_read_timeout 120s;
proxy_send_timeout 12s;
proxy_pass_request_headers on;
proxy_next_upstream error timeout invalid_header http_502 http_503 http_504;
proxy_next_upstream_tries 10;
proxy_next_upstream_timeout 5s;
}
location /saml {
@ -44,6 +48,10 @@ data:
proxy_read_timeout 120s;
proxy_send_timeout 12s;
proxy_pass_request_headers on;
proxy_next_upstream error timeout invalid_header http_502 http_503 http_504;
proxy_next_upstream_tries 10;
proxy_next_upstream_timeout 5s;
}
location / {
@ -52,10 +60,18 @@ data:
try_files $uri $uri/ /index.html;
expires -1;
add_header Cache-Control no-cache;
proxy_next_upstream error timeout invalid_header http_502 http_503 http_504;
proxy_next_upstream_tries 10;
proxy_next_upstream_timeout 5s;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
proxy_next_upstream error timeout invalid_header http_502 http_503 http_504;
proxy_next_upstream_tries 10;
proxy_next_upstream_timeout 5s;
}
}