From: Grant Slater Date: Thu, 30 May 2019 14:53:23 +0000 (+0100) Subject: tilecache: reject request without user-agent X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/15f6c76154197f073ec926f6e4ad3ec5b8841899 tilecache: reject request without user-agent --- diff --git a/cookbooks/nginx/templates/default/nginx.conf.erb b/cookbooks/nginx/templates/default/nginx.conf.erb index 4b2c15fa0..68fae2f0a 100644 --- a/cookbooks/nginx/templates/default/nginx.conf.erb +++ b/cookbooks/nginx/templates/default/nginx.conf.erb @@ -44,6 +44,12 @@ http { resolver <%= @resolvers.join(" ") %>; resolver_timeout 5s; + ssl_session_tickets on; + ssl_session_timeout 1h; + ssl_session_ticket_key /var/run/nginx-ephemeral/nginx_session_ticket_curr; + ssl_session_ticket_key /var/run/nginx-ephemeral/nginx_session_ticket_prev; + ssl_session_ticket_key /var/run/nginx-ephemeral/nginx_session_ticket_next; + <% if node['nginx']['cache']['fastcgi']['enable'] -%> fastcgi_cache_path /var/cache/nginx/fastcgi-cache levels=1:2 keys_zone=<%= node['nginx']['cache']['fastcgi']['keys_zone'] %> inactive=<%= node['nginx']['cache']['fastcgi']['inactive'] %> max_size=<%= node['nginx']['cache']['fastcgi']['max_size'] %>; <% end -%>