X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e1caae2e14e22418f086524189c4ce767b08c446..c6ab57739ce4bd77d5303b653615fa685dbc0cd7:/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 eff1526e0..2c016be02 100644 --- a/cookbooks/tilecache/templates/default/squid.conf.erb +++ b/cookbooks/tilecache/templates/default/squid.conf.erb @@ -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