]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: prefer ipv4 peers
authorGrant Slater <git@firefishy.com>
Sat, 18 Apr 2020 13:50:37 +0000 (14:50 +0100)
committerGrant Slater <git@firefishy.com>
Sat, 18 Apr 2020 13:50:37 +0000 (14:50 +0100)
cookbooks/nginx/templates/default/nginx.conf.erb
cookbooks/squid/templates/default/squid.conf.erb

index 5e09d846b049f2a93f0eed902c6ca49dc5fb682e..f5d4fc26904e22bb9544b8c34a4104b7a974cf69 100644 (file)
@@ -47,7 +47,7 @@ http {
     ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
 
     ssl_dhparam /etc/ssl/certs/dhparam.pem;
-    resolver 127.0.0.53;
+    resolver 127.0.0.53 ipv6=off;
     resolver_timeout 5s;
 
     <% if node['nginx']['cache']['fastcgi']['enable'] -%>
index 940eaae3f82dc85da8c269d7bdccabb818768253..a65436c45aef31fcc907cb1aae1c8c489d51f71c 100644 (file)
@@ -25,6 +25,7 @@ dns_retransmit_interval 2 seconds
 # Set low timeout
 dns_timeout 15 seconds
 <% end -%>
+dns_v4_first on
 
 # used by squidclient / munin
 http_port 3128