summaryrefslogtreecommitdiff
path: root/roles/apache_server/templates/deploy_static_site_certs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-05-18 16:10:00 +0300
committerLars Wirzenius <liw@liw.fi>2018-05-18 16:10:00 +0300
commit327610bad876a6c9ba4a7dbbb760ecfacb857c95 (patch)
tree1117fd4c1b9a4b8f027fb0e564c8ce9c1cdb35a8 /roles/apache_server/templates/deploy_static_site_certs
parentde0e510a15edb7a44028389f40687c4297bdadad (diff)
downloaddebian-ansible-327610bad876a6c9ba4a7dbbb760ecfacb857c95.tar.gz
Change: allow .well-known dir be outside webroot
Diffstat (limited to 'roles/apache_server/templates/deploy_static_site_certs')
-rw-r--r--roles/apache_server/templates/deploy_static_site_certs4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/apache_server/templates/deploy_static_site_certs b/roles/apache_server/templates/deploy_static_site_certs
index 32ace4e..3521651 100644
--- a/roles/apache_server/templates/deploy_static_site_certs
+++ b/roles/apache_server/templates/deploy_static_site_certs
@@ -14,7 +14,8 @@ opts()
{
for domain in $(domains)
do
- echo -w "/srv/http/$domain" -d "$domain"
+ echo -w "/srv/http/$domain" -d "$domain" \
+ --webroot-path "/srv/letsencrypt/$domain"
done
}
@@ -24,4 +25,5 @@ certbot certonly \
--email "{{ letsencrypt_email }}" \
--agree-tos \
--expand \
+ --cert-name static_sites \
--webroot $(opts)