aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_ssl/templates/httpd.d
diff options
context:
space:
mode:
Diffstat (limited to 'roles/obsd_ssl/templates/httpd.d')
-rw-r--r--roles/obsd_ssl/templates/httpd.d/acme.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/obsd_ssl/templates/httpd.d/acme.conf b/roles/obsd_ssl/templates/httpd.d/acme.conf
new file mode 100644
index 0000000..357a294
--- /dev/null
+++ b/roles/obsd_ssl/templates/httpd.d/acme.conf
@@ -0,0 +1,12 @@
+{% for domain in obsd_ssl_domains %}
+server "{{ domain }}" {
+ listen on * port 80
+ location "/.well-known/acme-challenge/*" {
+ root "/acme"
+ request strip 2
+ }
+ location * {
+ block return 302 "https://$HTTP_HOST$REQUEST_URI"
+ }
+}
+{% endfor %}