]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: do not fail socket upstreams
authorGrant Slater <git@firefishy.com>
Wed, 19 Dec 2018 15:55:28 +0000 (15:55 +0000)
committerGrant Slater <git@firefishy.com>
Wed, 19 Dec 2018 15:55:32 +0000 (15:55 +0000)
cookbooks/imagery/templates/default/nginx_imagery.conf.erb

index 20e8d5642a39e94b3bd4df842e1369ecd5dd2d4f..b9cc6092134d85954084ceb96995ed1a344e1537 100644 (file)
@@ -8,8 +8,9 @@ server {
 }
 
 upstream <%= @name %>_fastcgi {
-    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket";
-    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket";
+    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
+    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
+    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
 }
 
 server {