Don't try and fallback to alternate caches
authorTom Hughes <tom@compton.nu>
Mon, 4 Jun 2018 08:14:43 +0000 (09:14 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 4 Jun 2018 08:14:43 +0000 (09:14 +0100)
cookbooks/tilecache/templates/default/nginx_tile.conf.erb

index ce2b23b9ae26bb9998e68342d7acebf15b2c46a6..f5ae62618053c8f8167c19ec1dc2751e872d546a 100644 (file)
@@ -2,14 +2,6 @@
 
 upstream tile_cache_backend {
     server 127.0.0.1:8080;
-    <% @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;
 }