X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/c4e3302632c141f3e6b61675189caf8ce0632936..3ef2b67bd606468053449f1a63937562c7dc178f:/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