2015-01-15 20:40:58 +01:00
|
|
|
ssl on;
|
|
|
|
|
2015-04-14 18:35:50 +02:00
|
|
|
ssl_certificate <%= @ssl_cert %>;
|
|
|
|
ssl_certificate_key <%= @ssl_key %>;
|
2015-01-15 20:40:58 +01:00
|
|
|
<% if defined? @ssl_client_cert -%>
|
2015-04-14 18:35:50 +02:00
|
|
|
ssl_client_certificate <%= @ssl_client_cert %>;
|
2016-04-11 13:35:19 +02:00
|
|
|
ssl_verify_client <%= @ssl_verify_client %>;
|
2015-01-15 20:40:58 +01:00
|
|
|
<% end -%>
|
|
|
|
<% if defined? @ssl_dhparam -%>
|
2015-04-14 18:35:50 +02:00
|
|
|
ssl_dhparam <%= @ssl_dhparam %>;
|
2015-01-15 20:40:58 +01:00
|
|
|
<% end -%>
|
|
|
|
ssl_session_cache <%= @ssl_cache %>;
|
|
|
|
ssl_session_timeout <%= @ssl_session_timeout %>;
|
2016-06-16 18:26:50 +02:00
|
|
|
<% if @ssl_session_tickets -%>
|
|
|
|
ssl_session_tickets <%= @ssl_session_tickets %>;
|
|
|
|
<% end -%>
|
|
|
|
<% if @ssl_session_ticket_key -%>
|
|
|
|
ssl_session_ticket_key <%= @ssl_session_ticket_key %>;
|
|
|
|
<% end -%>
|
2015-07-12 01:53:30 +02:00
|
|
|
<% if @ssl_buffer_size -%>
|
|
|
|
ssl_buffer_size <%= @ssl_buffer_size %>;
|
|
|
|
<% end -%>
|
2015-01-15 20:40:58 +01:00
|
|
|
ssl_protocols <%= @ssl_protocols %>;
|
|
|
|
ssl_ciphers <%= @ssl_ciphers %>;
|
|
|
|
ssl_prefer_server_ciphers on;
|
2015-04-14 20:28:19 +02:00
|
|
|
<% if @ssl_crl -%>
|
|
|
|
ssl_crl <%= @ssl_crl %>;
|
|
|
|
<% end -%>
|
2015-01-15 20:40:58 +01:00
|
|
|
<%- if instance_variables.any? { |iv| iv.to_s.include? 'ssl_' } -%>
|
|
|
|
<%- if @ssl_stapling -%>
|
|
|
|
ssl_stapling on;
|
|
|
|
<%- end -%>
|
|
|
|
<%- if defined? @ssl_stapling_file -%>
|
2015-04-14 18:35:50 +02:00
|
|
|
ssl_stapling_file <%= @ssl_stapling_file %>;
|
2015-01-15 20:40:58 +01:00
|
|
|
<%- end -%>
|
|
|
|
<%- if defined? @ssl_stapling_responder -%>
|
|
|
|
ssl_stapling_responder <%= @ssl_stapling_responder %>;
|
|
|
|
<%- end -%>
|
|
|
|
<%- if @ssl_stapling_verify -%>
|
|
|
|
ssl_stapling_verify on;
|
|
|
|
<%- end -%>
|
|
|
|
<%- if defined? @ssl_trusted_cert -%>
|
2015-04-14 18:35:50 +02:00
|
|
|
ssl_trusted_certificate <%= @ssl_trusted_cert %>;
|
2015-01-15 20:40:58 +01:00
|
|
|
<%- end -%>
|
|
|
|
<% end -%>
|