From 4a63b1835310db003813e3a35c5cfb1340c0877a Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 14 Dec 2024 12:59:36 -0500 Subject: [PATCH] try next upstream in more cases for cached data --- nginx/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 8db946a..84ef6f5 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -425,6 +425,8 @@ http { proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504 http_429; proxy_cache_background_update on; + proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_429; + proxy_pass_request_body off; proxy_pass_request_headers off; @@ -525,6 +527,8 @@ http { proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504 http_429; proxy_cache_background_update on; + proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_429; + proxy_pass_request_body off; proxy_pass_request_headers off; @@ -589,6 +593,8 @@ http { proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504 http_429; proxy_cache_background_update on; + proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_429; + proxy_pass_request_body off; proxy_pass_request_headers off; @@ -642,6 +648,8 @@ http { proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504 http_429; proxy_cache_background_update on; + proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_429; + proxy_pass_request_body off; proxy_pass_request_headers off;