aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-01-23 12:30:00 +0100
committerbinary <me@rgoncalves.se>2021-01-23 12:30:00 +0100
commit03612d17ca9f16e14b4a10f48221268bf6ec7e28 (patch)
treeacd027b0f602f04fb8cc54a569b74b3fa8f31b33 /roles/httpd
parent92a8f042b108bc5a2d936307ce7b05143067616e (diff)
downloadinfrastructure-03612d17ca9f16e14b4a10f48221268bf6ec7e28.tar.gz
Add acme support
Diffstat (limited to 'roles/httpd')
-rw-r--r--roles/httpd/templates/httpd.conf.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/httpd/templates/httpd.conf.j2 b/roles/httpd/templates/httpd.conf.j2
index 45b46c3..4839cd0 100644
--- a/roles/httpd/templates/httpd.conf.j2
+++ b/roles/httpd/templates/httpd.conf.j2
@@ -12,6 +12,11 @@ types {
image/png png
}
+location "/.well-known/acme-challenge/*" {
+ root "/acme"
+ request strip 2
+}
+
{% for file in configurations.files %}
include "{{ file.path }}"
{% endfor %}
remember that computers suck.