show acme.conf only if LE is enabled

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-03-08 12:44:31 +01:00
parent 4330b08c04
commit 1f3c208f95
6 changed files with 28 additions and 0 deletions

View File

@@ -67,6 +67,8 @@
</content>
</file>
<file name="/etc/apache2/conf-enabled/acme.conf">
<visibility mode="true">{{settings.system.leenabled}}
</visibility>
<content><![CDATA[
Alias "/.well-known/acme-challenge" "{{settings.system.letsencryptchallengepath}}/.well-known/acme-challenge"
<Directory "{{settings.system.letsencryptchallengepath}}/.well-known/acme-challenge">
@@ -245,6 +247,8 @@ fastcgi_param REDIRECT_STATUS 200;
</content>
</file>
<file name="/etc/nginx/acme.conf">
<visibility mode="true">{{settings.system.leenabled}}
</visibility>
<content><![CDATA[
location /.well-known/acme-challenge {
alias {{settings.system.letsencryptchallengepath}}/.well-known/acme-challenge;