2011-06-07 00:25:04 +02:00
|
|
|
server {
|
2012-10-18 15:33:07 +02:00
|
|
|
listen <%= ssl_port %>;
|
2012-11-08 23:15:28 +01:00
|
|
|
<% if ipv6_enable == 'true' && (defined? ipaddress6) %>
|
|
|
|
listen [<%= ipv6_listen_ip %>]:<%= ipv6_listen_port %> <% if @ipv6_listen_options %><%= ipv6_listen_options %><% end %> ipv6only=on;
|
|
|
|
<% end %>
|
|
|
|
server_name <%= rewrite_www_to_non_www ? name.gsub(/^www\./, '') : server_name.join(" ") %>;
|
2011-06-07 00:25:04 +02:00
|
|
|
|
2013-04-24 10:42:06 +02:00
|
|
|
ssl on;
|
|
|
|
ssl_certificate <%= ssl_cert %>;
|
|
|
|
ssl_certificate_key <%= ssl_key %>;
|
|
|
|
ssl_session_cache shared:SSL:10m;
|
|
|
|
ssl_session_timeout 10m;
|
|
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
ssl_prefer_server_ciphers on;
|
2011-06-07 00:25:04 +02:00
|
|
|
|
2013-04-24 10:42:06 +02:00
|
|
|
<% proxy_set_header.each do |header| %>
|
|
|
|
proxy_set_header <%= header %>;<% end %>
|