Browse Source

Fix custom config being output

Jamie Curnow 7 years ago
parent
commit
af99d48591
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/backend/templates/_certificates.conf

+ 4 - 1
src/backend/templates/_certificates.conf

@@ -5,7 +5,10 @@
   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;
-{% endif %}
+{% else %}
+  # Custom SSL
   ssl_certificate /data/custom_ssl/npm-{{ certificate_id }}/fullchain.pem;
   ssl_certificate_key /data/custom_ssl/npm-{{ certificate_id }}/privkey.pem;
 {% endif %}
+{% endif %}
+