X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/afbb0c3a4dbaa76666abb291142df17c799f06b2..a6af365bd0033a3c6a2219af0817b107ce4e0b38:/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 bb62e8537..6c03797d1 100644 --- a/cookbooks/tilecache/templates/default/squid.conf.erb +++ b/cookbooks/tilecache/templates/default/squid.conf.erb @@ -1,3 +1,4 @@ +acl osmtile_thishost dstdomain <%= node[:fqdn] %> acl osmtile_sites dstdomain <%= node[:fqdn] %> a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org tile.openstreetmap.org a.tile.osm.org b.tile.osm.org c.tile.osm.org tile.osm.org acl osmtiles_png urlpath_regex .png$ @@ -104,10 +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 +<% end -%> <% end -%> #Primary Parent