From 118b17306940785773dad3090d2441b2700f8d0d Mon Sep 17 00:00:00 2001 From: tiptophelmet Date: Wed, 9 Oct 2024 17:34:36 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20`proxy=5Fnext=5Fupstream`?= =?UTF-8?q?=20to=20retry=20finding=20`hub`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helm-chart/templates/11-nginx-config-map.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/helm-chart/templates/11-nginx-config-map.yaml b/helm-chart/templates/11-nginx-config-map.yaml index 22e085059..9c1b932b3 100644 --- a/helm-chart/templates/11-nginx-config-map.yaml +++ b/helm-chart/templates/11-nginx-config-map.yaml @@ -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; } }