forked from ISTI-ansible-roles/ansible-roles
library/roles/nginx/templates/nginx-server-ssl.conf.j2: Fix the behaviour when letsencrypt is not installed.
This commit is contained in:
parent
f4d3393235
commit
b4239da6ae
|
@ -1,6 +1,6 @@
|
||||||
{% if letsencrypt_acme_install %}
|
{% if letsencrypt_acme_install is defined and letsencrypt_acme_install %}
|
||||||
ssl_certificate {{ letsencrypt_acme_certs_dir }}/fullchain;
|
ssl_certificate {{ letsencrypt_acme_certs_dir | default('/var/lib/acme/live/{{ ansible_fqdn }}') }}/fullchain;
|
||||||
ssl_certificate_key {{ letsencrypt_acme_certs_dir }}/privkey;
|
ssl_certificate_key {{ letsencrypt_acme_certs_dir | default('/var/lib/acme/live/{{ ansible_fqdn }}') }}/privkey;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
ssl_session_cache shared:SSL:10m;
|
ssl_session_cache shared:SSL:10m;
|
||||||
ssl_session_timeout 10m;
|
ssl_session_timeout 10m;
|
||||||
|
|
Loading…
Reference in New Issue