]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/squid/templates/default/squid.conf.erb
Make more fail2ban jail properties optional
[chef.git] / cookbooks / squid / templates / default / squid.conf.erb
index a2f38b73ffb6325f827346a352a12219d1b5397b..775f5ec6cea2702248aef5624ac48dbcd2e06bd3 100644 (file)
@@ -1,5 +1,8 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
+#configure host name
+visible_hostname <%= node.name %>
+
 #FIXME - configurable
 cache_mem  <%= node[:squid][:cache_mem] %>
 
@@ -16,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
@@ -61,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 -%>