From: Grant Slater Date: Tue, 7 May 2024 13:31:12 +0000 (+0100) Subject: imagery: intercept titiler errors for retry X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/58616268564ac6eb6ff6ecaa232c6f7f9dce819d?hp=b5b2994a949dc3f1daec3ef20a449f8f4e3f8b8d imagery: intercept titiler errors for retry --- 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 44078b2e2..e72a6d7e9 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb @@ -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_intercept_errors on; proxy_next_upstream_timeout 30s; <% else -%>