2019-08-17 09:01:00 +00:00
|
|
|
{% if certificate and certificate_id > 0 -%}
|
|
|
|
{% if certificate.provider == "letsencrypt" %}
|
2018-08-16 23:25:59 +00:00
|
|
|
# Let's Encrypt SSL
|
|
|
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
|
|
|
include conf.d/include/ssl-ciphers.conf;
|
2019-08-17 09:01:00 +00:00
|
|
|
ssl_certificate /etc/letsencrypt/live/npm-{{ certificate_id }}/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/npm-{{ certificate_id }}/privkey.pem;
|
|
|
|
{% endif %}
|
2018-08-22 04:31:03 +00:00
|
|
|
ssl_certificate /data/custom_ssl/npm-{{ certificate_id }}/fullchain.pem;
|
|
|
|
ssl_certificate_key /data/custom_ssl/npm-{{ certificate_id }}/privkey.pem;
|
|
|
|
{% endif %}
|