]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/templates/default/nginx_imagery.conf.erb
Configure resolvers for stapling with nginx
[chef.git] / cookbooks / imagery / templates / default / nginx_imagery.conf.erb
index b926d479cf9db5436519c2fd5f3b35e45921048b..7001f794cf325665ceac874b85e5013dad4756ee 100644 (file)
@@ -13,6 +13,8 @@ server {
     ssl_session_timeout 30m;
     ssl_stapling on;
     ssl_dhparam /etc/ssl/certs/dhparam.pem;
+    resolver <%= @resolvers.join(" ") %>;
+    resolver_timeout 5s;
 
     root "/srv/<%= @name %>";
     rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent;