]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb
Configure 2048 bit DH parameters for nginx
[chef.git] / cookbooks / tilecache / templates / default / nginx_tile_ssl.conf.erb
1 server {
2     listen       443 ssl spdy;
3     server_name  localhost;
4
5     proxy_buffers 8 64k;
6
7     ssl_certificate      /etc/ssl/certs/<%= @certificate %>.pem;
8     ssl_certificate_key  /etc/ssl/private/<%= @certificate %>.key;
9
10     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
11     ssl_ciphers <%= node[:ssl][:ciphers] -%>;
12     ssl_prefer_server_ciphers on;
13     ssl_session_cache shared:SSL:30m;
14     ssl_session_timeout 15m;
15     ssl_stapling on;
16     ssl_dhparam /etc/ssl/certs/dhparam.pem;
17     resolver <%= @resolvers.join(" ") %>;
18
19     location / { proxy_pass http://127.0.0.1; proxy_set_header X-Forwarded-For $remote_addr; }
20 }