From 317347e88f96d099648a0837c9c1054790f8fc19 Mon Sep 17 00:00:00 2001 From: anon8675309 Date: Fri, 30 Jun 2023 14:17:50 -0500 Subject: [PATCH] feat: Allow omiting a chainfile when we don't have nor need one --- templates/etc/apache2/sites-available/inc/site_https_ssl.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/apache2/sites-available/inc/site_https_ssl.j2 b/templates/etc/apache2/sites-available/inc/site_https_ssl.j2 index eab4113..97bc83c 100644 --- a/templates/etc/apache2/sites-available/inc/site_https_ssl.j2 +++ b/templates/etc/apache2/sites-available/inc/site_https_ssl.j2 @@ -4,7 +4,7 @@ SSLEngine on SSLCertificateKeyFile {{ APACHE_CONFIG.ssl.path }}/{{ name }}.key SSLCertificateFile {{ APACHE_CONFIG.ssl.path }}/{{ name }}.crt -{% if site.ssl.mode != 'selfsigned' %} +{% if site.ssl.mode != 'selfsigned' and not site.ssl.no_chainfile | default(true) %} SSLCertificateChainFile {{ APACHE_CONFIG.ssl.path }}/{{ name }}{% if site.ssl.mode == 'letsencrypt' %}.fullchain{% else %}.chain{% endif %}.crt {% endif %}