]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: retry proxy errors
authorGrant Slater <github@firefishy.com>
Wed, 3 Apr 2024 16:08:49 +0000 (17:08 +0100)
committerGrant Slater <github@firefishy.com>
Wed, 3 Apr 2024 16:08:49 +0000 (17:08 +0100)
cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb

index c4271690d43e0737d16060d3ca5732e18d9749ac..44078b2e240b13e87661b4eff8ed5ce59b429be7 100644 (file)
@@ -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