]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: intercept titiler errors for retry
authorGrant Slater <github@firefishy.com>
Tue, 7 May 2024 13:31:12 +0000 (14:31 +0100)
committerGrant Slater <github@firefishy.com>
Tue, 7 May 2024 13:31:12 +0000 (14:31 +0100)
cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb

index 44078b2e240b13e87661b4eff8ed5ce59b429be7..e72a6d7e9c4049052027cd24235e11380eee3a87 100644 (file)
@@ -24,6 +24,7 @@ location ~* "^/layer/<%= @layer %>/(\d+)/(\d+)/(\d+)\.(png|jpg|jpeg)$" {
   proxy_cache_background_update on;
   proxy_next_upstream error timeout invalid_header http_500 http_503;
   proxy_next_upstream_tries 3;
   proxy_cache_background_update on;
   proxy_next_upstream error timeout invalid_header http_500 http_503;
   proxy_next_upstream_tries 3;
+  proxy_intercept_errors on;
   proxy_next_upstream_timeout 30s;
 
 <% else -%>
   proxy_next_upstream_timeout 30s;
 
 <% else -%>