From 602c292ad8c4434d47a0f37c71db34dd24c50ec4 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 10 Apr 2018 23:22:19 +0800 Subject: web/sites: Also check availability of 'radicale' and 'cgit' --- roles/web/templates/sites/liwt.git.conf.j2 | 2 +- roles/web/templates/sites/liwt.radicale.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'roles') 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; -- cgit v1.2.2