X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/792c1eb95437d9d532eeb83832152a8cd5fd1811..42eb11524e4d9d8b8671e5c07dd349c0776c4131:/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 0b8189d33..775f5ec6c 100644 --- a/cookbooks/squid/templates/default/squid.conf.erb +++ b/cookbooks/squid/templates/default/squid.conf.erb @@ -19,9 +19,6 @@ log_icp_queries off http_port 80 accel defaultsite=tile.openstreetmap.org tcpkeepalive=60,10,6 http11 <% else -%> http_port 80 accel no-vhost defaultsite=tile.openstreetmap.org tcpkeepalive=60,10,6 - -#prefer IPv4 until everything is upgraded -dns_v4_first on <% end -%> cache_effective_user proxy @@ -64,7 +61,9 @@ request_timeout 90 seconds connect_timeout 20 seconds client_lifetime 1 hours +<% if node[:squid][:version] < 4 -%> collapsed_forwarding on +<% end -%> <% if node[:squid][:version] < 3 -%> refresh_stale_hit 300 seconds <% end -%>