From cad441426273a6a1d64b0cade4f5ad5c1b07c1e5 Mon Sep 17 00:00:00 2001 From: Matthieu Saulnier Date: Sat, 10 Nov 2018 11:13:55 +0100 Subject: Add condition in reverseproxy config template --- roles/reverseproxy/templates/Caddyfile.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/reverseproxy/templates/Caddyfile.j2 b/roles/reverseproxy/templates/Caddyfile.j2 index 753c63d..4f34a18 100644 --- a/roles/reverseproxy/templates/Caddyfile.j2 +++ b/roles/reverseproxy/templates/Caddyfile.j2 @@ -1,3 +1,4 @@ +{% if domainhttps is defined %} {% for item in domainhttps %} {{ item }} { tls {{ email }} @@ -12,6 +13,7 @@ } } {% endfor %} +{% endif %} {% if outdoor is defined %} {% for item in publicstatic %} -- cgit