aboutsummaryrefslogtreecommitdiffstats
path: root/roles/website
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-01-23 12:33:37 +0100
committerbinary <me@rgoncalves.se>2021-01-23 12:33:37 +0100
commit59619996d436f5688ab5946d820d20642d980df0 (patch)
tree1afc0d99f69126aca03d5d7c70a94db098b5dcc2 /roles/website
parent6449e467ea5bce7b8639256d05b22a6a2e0a2c83 (diff)
downloadinfrastructure-59619996d436f5688ab5946d820d20642d980df0.tar.gz
Acme challenge has to be in a host description
Diffstat (limited to 'roles/website')
-rw-r--r--roles/website/templates/httpd.conf.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/website/templates/httpd.conf.j2 b/roles/website/templates/httpd.conf.j2
index b1ce966..5008c18 100644
--- a/roles/website/templates/httpd.conf.j2
+++ b/roles/website/templates/httpd.conf.j2
@@ -10,6 +10,11 @@ server "{{ global.domain_name }}" {
directory auto index
}
+ location "/.well-known/acme-challenge/*" {
+ root "/acme"
+ request strip 2
+ }
+
}
server "www.{{ global.domain_name }}" {
remember that computers suck.