summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apache2/conf-available/local-tls.conf10
1 files changed, 8 insertions, 2 deletions
diff --git a/apache2/conf-available/local-tls.conf b/apache2/conf-available/local-tls.conf
index 12e2c4a..b921c2e 100644
--- a/apache2/conf-available/local-tls.conf
+++ b/apache2/conf-available/local-tls.conf
@@ -8,8 +8,14 @@
<IfDefine _TLS_HOST>
Define __TLS_CERT_CHAIN
Define __TLS_KEY
- Define _TLS_CERT_CHAIN /var/lib/dehydrated/certs/${_TLS_HOST}/fullchain.pem
- Define _TLS_KEY /var/lib/dehydrated/certs/${_TLS_HOST}/privkey.pem
+ <IfDefine _TLS_USE_DEHYDRATED>
+ Define _TLS_CERT_CHAIN /var/lib/dehydrated/certs/${_TLS_HOST}/fullchain.pem
+ Define _TLS_KEY /var/lib/dehydrated/certs/${_TLS_HOST}/privkey.pem
+ </If>
+ <IfDefine !_TLS_USE_DEHYDRATED>
+ Define _TLS_CERT_CHAIN /etc/ssl/shared/${_TLS_HOST}.chain.pem
+ Define _TLS_KEY /etc/ssl/private/${_TLS_HOST}.key
+ </If>
</IfDefine>
</IfDefine>