xoxys.nginx/templates/etc/nginx/conf.d/tls.conf.j2
Robert Kaussow 30e3b7859e
Some checks failed
continuous-integration/drone/push Build is failing
cleanup
2019-07-18 08:59:41 +02:00

23 lines
635 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
ssl_ciphers {{ nginx_tls_ciphers | join(":") }};
ssl_prefer_server_ciphers on;
{% if nginx_tls_ecdh_curve is defined %}
ssl_ecdh_curve {{ nginx_tls_ecdh_curve | join(":") }};
{% endif %}
{% if nginx_tls_dhparam_file is defined %}
ssl_dhparam {{ nginx_tls_dhparam_file }};
{% endif %}
ssl_protocols {{ nginx_tls_versions | join(" ") }};
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_session_tickets off;
{% if nginx_tls_ocsp_enabled %}
ssl_stapling on;
ssl_trusted_certificate {{ nginx_tls_ocsp_trusted_certificate }};
ssl_stapling_verify on;
{% endif %}