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 20e8d56..b9cc609 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 {