]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/templates/default/nginx_imagery.conf.erb
imagery: add additional upstream to allow backend retry
[chef.git] / cookbooks / imagery / templates / default / nginx_imagery.conf.erb
index ea9730a95d2ba3c90012b78c1b6f0f3c8e230bd5..42ae9ac014b3a10b609adec40e0f1504fdb8e0cb 100644 (file)
@@ -9,9 +9,8 @@ server {
 
 <% if @uses_tiler -%>
 upstream <%= @name %>_tiler_backend {
-    server 127.0.0.1:8080 max_fails=0;
-
-    keepalive 32;
+    server unix:/srv/imagery/sockets/titiler.sock max_fails=0;
+    server unix:/srv/./imagery/sockets/titiler.sock max_fails=0;
 }
 <% else -%>
 upstream <%= @name %>_fastcgi {