]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/squid.conf.erb
Block pmap.kuku.lu from tile caches
[chef.git] / cookbooks / tilecache / templates / default / squid.conf.erb
index eff1526e070fff5ad59c262e63a0b3e0c36fded3..2c016be020fcd53eb2bd4c6ec48d84f94f9a2cb5 100644 (file)
@@ -26,6 +26,11 @@ acl osmtileScrapers browser ^app_name$
 
 http_access deny osmtile_sites osmtileScrapers
 
+acl osmtileOverusers referer_regex ^https?://pmap\.kuku\.lu/
+acl osmtileOverusers referer_regex ^https?://[^.]*\.pmap\.kuku\.lu/
+
+http_access deny osmtile_sites osmtileOverusers
+
 acl whitelist_path urlpath_regex ^/cgi-bin/(export|debug)
 acl blacklist_path urlpath_regex ^/cgi-bin/
 acl blacklist_path urlpath_regex ^/MyAdmin/
@@ -57,7 +62,7 @@ cache deny osmtile_sites osmtile_nocache_url
 cache_peer <%= sibling %> sibling 3128 3130 weight=1500
 <% end -%>
 #Primary Parent
-cache_peer <%= node[:tilecache][:tile_parent] %> parent 80 0 no-query originserver name=osmtileAccel login=PASS connect-timeout=60 no-digest weight=1000
+cache_peer <%= node[:tilecache][:tile_parent] %> parent 80 0 no-query originserver name=osmtileAccel login=PASS connect-timeout=120 no-digest weight=1000
 cache_peer_access osmtileAccel allow osmtile_sites
 
 #Backup Parents