]> git.openstreetmap.org Git - chef.git/commitdiff
Don't forward host specific requests to siblings
authorTom Hughes <tom@compton.nu>
Fri, 8 Jun 2018 13:41:50 +0000 (14:41 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 8 Jun 2018 13:41:50 +0000 (14:41 +0100)
cookbooks/tilecache/templates/default/squid.conf.erb

index bb62e8537c3a11624b3193d31ebe2b45fe4b27c6..080c7998d9a7ac662f412acdb11be338959354d8 100644 (file)
@@ -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$
 
@@ -108,6 +109,7 @@ acl tile_caches src <%= address %>
 <% 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 -%>
 
 #Primary Parent