xoxys.nginx/templates/etc/nginx/conf.d/tls.conf.j2

23 lines
635 B
Plaintext
Raw Normal View History

2018-12-09 22:12:03 +00:00
#jinja2: lstrip_blocks: True
2019-07-18 06:59:41 +00:00
{{ ansible_managed | comment }}
2019-06-12 07:18:04 +00:00
ssl_ciphers {{ nginx_tls_ciphers | join(":") }};
2018-08-11 12:59:43 +00:00
ssl_prefer_server_ciphers on;
2019-06-11 20:58:53 +00:00
{% if nginx_tls_ecdh_curve is defined %}
2019-06-12 07:18:04 +00:00
ssl_ecdh_curve {{ nginx_tls_ecdh_curve | join(":") }};
2019-06-11 20:58:53 +00:00
{% endif %}
2018-12-09 22:16:42 +00:00
{% if nginx_tls_dhparam_file is defined %}
2018-12-09 22:12:03 +00:00
ssl_dhparam {{ nginx_tls_dhparam_file }};
{% endif %}
2017-07-15 20:33:16 +00:00
2019-06-11 20:58:53 +00:00
ssl_protocols {{ nginx_tls_versions | join(" ") }};
2017-07-15 20:33:16 +00:00
ssl_session_cache shared:SSL:10m;
2019-06-11 20:58:53 +00:00
ssl_session_timeout 10m;
ssl_session_tickets off;
2018-10-22 08:56:39 +00:00
{% if nginx_tls_ocsp_enabled %}
ssl_stapling on;
2018-10-22 08:56:39 +00:00
ssl_trusted_certificate {{ nginx_tls_ocsp_trusted_certificate }};
ssl_stapling_verify on;
2018-08-11 12:59:43 +00:00
{% endif %}