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

17 lines
441 B
Plaintext
Raw Normal View History

2018-12-09 23:12:03 +01:00
#jinja2: lstrip_blocks: True
2017-07-15 22:33:16 +02:00
# {{ ansible_managed }}
2018-10-22 10:56:39 +02:00
ssl_ciphers '{{ nginx_tls_ciphers | join(":") }}';
2018-08-11 14:59:43 +02:00
ssl_prefer_server_ciphers on;
2018-12-09 23:16:42 +01:00
{% if nginx_tls_dhparam_file is defined %}
2018-12-09 23:12:03 +01:00
ssl_dhparam {{ nginx_tls_dhparam_file }};
{% endif %}
2017-07-15 22:33:16 +02:00
2018-08-11 14:59:43 +02:00
ssl_protocols TLSv1.2;
2017-07-15 22:33:16 +02:00
ssl_session_cache shared:SSL:10m;
2018-10-22 10:56:39 +02:00
{% if nginx_tls_ocsp_enabled %}
ssl_stapling on;
2018-10-22 10:56:39 +02:00
ssl_trusted_certificate {{ nginx_tls_ocsp_trusted_certificate }};
ssl_stapling_verify on;
2018-08-11 14:59:43 +02:00
{% endif %}