X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fba6ad6ff59b598fd3befceaa3a70f33e6f0dcbb..981b586040b3fe307a4855e58e846da75555aa05:/cookbooks/squid/templates/default/squid.conf.erb diff --git a/cookbooks/squid/templates/default/squid.conf.erb b/cookbooks/squid/templates/default/squid.conf.erb index 8bf4ef100..0c54aae82 100644 --- a/cookbooks/squid/templates/default/squid.conf.erb +++ b/cookbooks/squid/templates/default/squid.conf.erb @@ -9,9 +9,10 @@ max_filedescriptors 65536 http_port 3128 #ICP icp_port 3130 +log_icp_queries off #FIXME - configurable -http_port 80 accel defaultsite=tile.openstreetmap.org tcpkeepalive=60,10,6 http11 +http_port 127.0.0.1:8080 accel defaultsite=tile.openstreetmap.org tcpkeepalive=60,10,6 http11 cache_effective_user proxy cache_effective_group proxy @@ -20,6 +21,8 @@ cache_effective_group proxy cache_dir <%= node[:squid][:cache_dir] %> cache_swap_log /var/spool/squid/%s +cache_mgr webmaster@openstreetmap.org + quick_abort_min 0 KB quick_abort_max 0 KB @@ -79,7 +82,9 @@ http_access allow purge purge_hosts http_access deny purge forwarded_for on +follow_x_forwarded_for allow localhost +logformat openstreetmap %ts.%03tu %tr %>a %Ss/%03Hs %h" "%{User-Agent}>h" access_log <%= node[:squid][:access_log] %> cache_log /var/log/squid/cache.log cache_store_log none @@ -87,9 +92,9 @@ buffered_logs on client_db off strip_query_terms off -digest_generation off +digest_generation on -refresh_pattern . 0 20% 4320 +refresh_pattern . 0 50% 8640 #ZERO required for logrotate to work properly logfile_rotate 0