X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a839868a4ce8d05946a97f83c1aa451028c07889..51096343cee85550cd197da1f8354f8407506af5:/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb diff --git a/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb index 0b587e242..63e915fff 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb @@ -1,11 +1,13 @@ upstream tile_cache_backend { server 127.0.0.1; <% @caches.each do |cache| -%> + <% if cache[:hostname] != node[:hostname] -%> #Server <%= cache[:hostname] %> <% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%> server <%= address %> backup; <% end -%> <% end -%> + <% end -%> keepalive 32; }