diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-11-10 11:13:55 +0100 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-11-10 11:13:55 +0100 |
commit | cad441426273a6a1d64b0cade4f5ad5c1b07c1e5 (patch) | |
tree | 633eadf2edf4d352718c215bb5be6769c19cb712 | |
parent | e110384d0249f07a66a3d0dace752c0858e8883b (diff) | |
download | playbooks-ansible-cad441426273a6a1d64b0cade4f5ad5c1b07c1e5.tar.gz playbooks-ansible-cad441426273a6a1d64b0cade4f5ad5c1b07c1e5.tar.xz playbooks-ansible-cad441426273a6a1d64b0cade4f5ad5c1b07c1e5.zip |
Add condition in reverseproxy config template
-rw-r--r-- | roles/reverseproxy/templates/Caddyfile.j2 | 2 |
1 files changed, 2 insertions, 0 deletions
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 %} |