diff options
author | Aaron LI <aly@aaronly.me> | 2018-04-10 23:22:19 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-04-10 23:22:19 +0800 |
commit | 602c292ad8c4434d47a0f37c71db34dd24c50ec4 (patch) | |
tree | 8b25f694a049a51fb665fdbb19dd5dba3ef2a038 /roles/web | |
parent | 2e1ea4df861fe1682331d8ac051d435bcb160cf7 (diff) | |
download | ansible-dfly-vps-602c292ad8c4434d47a0f37c71db34dd24c50ec4.tar.bz2 |
web/sites: Also check availability of 'radicale' and 'cgit'
Diffstat (limited to 'roles/web')
-rw-r--r-- | roles/web/templates/sites/liwt.git.conf.j2 | 2 | ||||
-rw-r--r-- | roles/web/templates/sites/liwt.radicale.conf.j2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/web/templates/sites/liwt.git.conf.j2 b/roles/web/templates/sites/liwt.git.conf.j2 index 363d493..f448dd6 100644 --- a/roles/web/templates/sites/liwt.git.conf.j2 +++ b/roles/web/templates/sites/liwt.git.conf.j2 @@ -13,7 +13,7 @@ # 2017-06-18 # -{% if domains_hascert[domain] %} +{% if cgit is defined and domains_hascert[domain] %} server { listen 443 ssl http2; listen [::]:443 ssl http2; diff --git a/roles/web/templates/sites/liwt.radicale.conf.j2 b/roles/web/templates/sites/liwt.radicale.conf.j2 index 728717f..30ad727 100644 --- a/roles/web/templates/sites/liwt.radicale.conf.j2 +++ b/roles/web/templates/sites/liwt.radicale.conf.j2 @@ -7,7 +7,7 @@ # 2017-04-27 # -{% if domains_hascert[domain] %} +{% if radicale is defined and domains_hascert[domain] %} server { listen 443 ssl http2; listen [::]:443 ssl http2; |