2024-07-22 15:53:21 -04:00
|
|
|
{% if certificate and certificate_id > 0 %}
|
2024-03-24 13:11:04 -04:00
|
|
|
{% if certificate.provider == "letsencrypt" %}
|
|
|
|
# Let's Encrypt SSL
|
|
|
|
include conf.d/include/ssl-cache-stream.conf;
|
|
|
|
include conf.d/include/ssl-ciphers.conf;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/npm-{{ certificate_id }}/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/npm-{{ certificate_id }}/privkey.pem;
|
2024-07-22 15:53:21 -04:00
|
|
|
{%- else %}
|
2024-03-24 13:11:04 -04:00
|
|
|
# Custom SSL
|
|
|
|
ssl_certificate /data/custom_ssl/npm-{{ certificate_id }}/fullchain.pem;
|
|
|
|
ssl_certificate_key /data/custom_ssl/npm-{{ certificate_id }}/privkey.pem;
|
2024-07-22 15:53:21 -04:00
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|