library/roles/nginx/templates/nginx-server-ssl.conf.j2: Fix the behaviour when letsencrypt is not installed.

This commit is contained in:
Andrea Dell'Amico 2016-10-03 18:44:18 +02:00
parent f4d3393235
commit b4239da6ae
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{% if letsencrypt_acme_install %}
ssl_certificate {{ letsencrypt_acme_certs_dir }}/fullchain;
ssl_certificate_key {{ letsencrypt_acme_certs_dir }}/privkey;
{% if letsencrypt_acme_install is defined and letsencrypt_acme_install %}
ssl_certificate {{ letsencrypt_acme_certs_dir | default('/var/lib/acme/live/{{ ansible_fqdn }}') }}/fullchain;
ssl_certificate_key {{ letsencrypt_acme_certs_dir | default('/var/lib/acme/live/{{ ansible_fqdn }}') }}/privkey;
{% endif %}
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;