aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd
diff options
context:
space:
mode:
Diffstat (limited to 'roles/httpd')
-rw-r--r--roles/httpd/templates/httpd.conf.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/httpd/templates/httpd.conf.j2 b/roles/httpd/templates/httpd.conf.j2
index 9a028f9..aef96c5 100644
--- a/roles/httpd/templates/httpd.conf.j2
+++ b/roles/httpd/templates/httpd.conf.j2
@@ -15,6 +15,12 @@ types {
{% if ansible_host == global.dcontroller %}
server "default" {
listen on localhost port 8888
+
+ location "/.well-known/acme-challenge/*" {
+ root "/acme"
+ request strip 2
+ }
+
location * {
block return 302 "https://\$HTTP_HOST\$REQUEST_URI"
}
remember that computers suck.