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