X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/623dcf6bfde3757e54fcc275ae2bbf48582fae61..181af37365e71b851c0b07e415f14c25d6669f5b:/cookbooks/imagery/templates/default/nginx_imagery.conf.erb diff --git a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb index ec8a7ca31..9aa397905 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb @@ -7,6 +7,20 @@ server { return 301 https://$host$request_uri; } +upstream <%= @name %>_fastcgi { + server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-0.socket" max_fails=0; + server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-1.socket" max_fails=0; + server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-2.socket" max_fails=0; + server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-3.socket" max_fails=0; + server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-4.socket" max_fails=0; + server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-5.socket" max_fails=0; + server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-6.socket" max_fails=0; + server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-7.socket" max_fails=0; + + # Use default round-robin to distribute requests, rather than pick "fast" but maybe faulty. + # Do not use keepalive +} + server { listen [::]:443 ssl; listen *:443 ssl;