X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c4e3302632c141f3e6b61675189caf8ce0632936..d4db5c7d063bb8bbb891f057d9a775ebf3390eaa:/cookbooks/tilecache/templates/default/squid.conf.erb diff --git a/cookbooks/tilecache/templates/default/squid.conf.erb b/cookbooks/tilecache/templates/default/squid.conf.erb index 080c7998d..6c03797d1 100644 --- a/cookbooks/tilecache/templates/default/squid.conf.erb +++ b/cookbooks/tilecache/templates/default/squid.conf.erb @@ -105,11 +105,11 @@ acl tile_caches src <%= address %> <% end -%> <% end -%> +<% if node[:squid][:version] == "2" -%> #Siblings <% node[:tilecache][:tile_siblings].each do |sibling| -%> cache_peer <%= sibling %> sibling 3128 3130 weight=1500 -cache_peer_access <%= sibling %> deny tile_caches -cache_peer_access <%= sibling %> deny osmtile_thishost +<% end -%> <% end -%> #Primary Parent