]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: add additional upstream to allow backend retry
authorGrant Slater <github@firefishy.com>
Fri, 5 Jul 2024 10:24:30 +0000 (11:24 +0100)
committerGrant Slater <github@firefishy.com>
Fri, 5 Jul 2024 10:24:30 +0000 (11:24 +0100)
cookbooks/imagery/templates/default/nginx_imagery.conf.erb
cookbooks/imagery/templates/default/nginx_titiler.conf.erb

index 126c2d1173985ad2ffae1c8ed77891290285a9d3..42ae9ac014b3a10b609adec40e0f1504fdb8e0cb 100644 (file)
@@ -10,6 +10,7 @@ server {
 <% if @uses_tiler -%>
 upstream <%= @name %>_tiler_backend {
     server unix:/srv/imagery/sockets/titiler.sock max_fails=0;
+    server unix:/srv/./imagery/sockets/titiler.sock max_fails=0;
 }
 <% else -%>
 upstream <%= @name %>_fastcgi {
index ea48a0cec30edec0be829166e1f3dfeb312c2d90..155620949e425fe688692b5ee2a50a5c897e5c82 100644 (file)
@@ -17,6 +17,7 @@ server {
 
 upstream titiler_api_backend {
     server unix:/srv/imagery/sockets/titiler.sock max_fails=0;
+    server unix:/srv/./imagery/sockets/titiler.sock max_fails=0;
 }
 
 server {
@@ -50,7 +51,7 @@ server {
 
     location /api/v1/titiler {
       rewrite ^/api/v1/titiler(.*)$ $1 break;
-      proxy_pass http://titiler_api_backend
+      proxy_pass http://titiler_api_backend;
       proxy_set_header Host $host;
       proxy_set_header Referer $http_referer;
       proxy_set_header X-Forwarded-For $remote_addr;