aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--group_vars/all/vars.yml3
-rw-r--r--roles/web/templates/sites/00-acme-httpredirect.conf.j22
2 files changed, 4 insertions, 1 deletions
diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml
index 81a2f0b..8d09fc4 100644
--- a/group_vars/all/vars.yml
+++ b/group_vars/all/vars.yml
@@ -14,6 +14,9 @@ pf:
# rate of new connections allowed from one host
max_conn_rate: 15/5 # 15 of connections per 5 seconds
+web:
+ acme_webroot: /home/www/acme
+
domains:
- name: liwt.net
# sub-domains for which to request certificates
diff --git a/roles/web/templates/sites/00-acme-httpredirect.conf.j2 b/roles/web/templates/sites/00-acme-httpredirect.conf.j2
index bf6d325..a4b59a8 100644
--- a/roles/web/templates/sites/00-acme-httpredirect.conf.j2
+++ b/roles/web/templates/sites/00-acme-httpredirect.conf.j2
@@ -13,7 +13,7 @@ server {
location ^~ /.well-known/acme-challenge/ {
default_type text/plain;
- root /usr/local/www/acme;
+ root {{ web.acme_webroot }};
}
location = /.well-known/acme-challenge/ {
return 404;