From aa580b24873a23f97505af83d6fdc54914ea47e1 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 3 Apr 2024 17:08:49 +0100 Subject: [PATCH] imagery: retry proxy errors --- .../templates/default/nginx_imagery_layer_fragment.conf.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb b/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb index c4271690d..44078b2e2 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb @@ -22,6 +22,9 @@ location ~* "^/layer/<%= @layer %>/(\d+)/(\d+)/(\d+)\.(png|jpg|jpeg)$" { proxy_cache_valid 200 204 180d; proxy_cache_use_stale error timeout updating http_502 http_503 http_504; proxy_cache_background_update on; + proxy_next_upstream error timeout invalid_header http_500 http_503; + proxy_next_upstream_tries 3; + proxy_next_upstream_timeout 30s; <% else -%> # Override QUERY_STRING to force mapserver query parameters -- 2.39.5