feat: Allow omiting a chainfile when we don't have nor need one

This commit is contained in:
anon8675309 2023-06-30 14:17:50 -05:00
parent ba97fe4dce
commit 317347e88f
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}
</IfModule>