]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/templates/default/nginx_imagery.conf.erb
Merge remote-tracking branch 'github/pull/713'
[chef.git] / cookbooks / imagery / templates / default / nginx_imagery.conf.erb
index 019b0a91b66d0168aa4c5b3229db23adb92c3b01..42ae9ac014b3a10b609adec40e0f1504fdb8e0cb 100644 (file)
@@ -8,10 +8,9 @@ server {
 }
 
 <% if @uses_tiler -%>
-upstream tiler_backend {
-    server 127.0.0.1:8080 max_fails=0;
-
-    keepalive 32;
+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 {