mailhost_ssl.erb 751 B

1234567891011121314151617181920212223
  1. server {
  2. listen <%= ssl_port %>;
  3. <% # check to see if ipv6 support exists in the kernel before applying %>
  4. <% if ipv6_enable && (defined? @ipaddress6) %>
  5. listen [<%= ipv6_listen_ip %>]:<%= ipv6_listen_port %> <% if @ipv6_listen_options %><%= ipv6_listen_options %><% end %> ipv6only=on;
  6. <% end %>
  7. server_name <%= server_name.join(" ") %>;
  8. protocol <%= protocol %>;
  9. xclient <%= xclient %>;
  10. auth_http <%= auth_http %>;
  11. ssl on;
  12. ssl_certificate <%= ssl_cert %>;
  13. ssl_certificate_key <%= ssl_key %>;
  14. ssl_session_timeout 5m;
  15. ssl_protocols SSLv3 TLSv1;
  16. ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
  17. ssl_prefer_server_ciphers on;
  18. }