aboutsummaryrefslogtreecommitdiffstats
path: root/roles
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
parent6449e467ea5bce7b8639256d05b22a6a2e0a2c83 (diff)
downloadinfrastructure-59619996d436f5688ab5946d820d20642d980df0.tar.gz
Acme challenge has to be in a host description
Diffstat (limited to 'roles')
-rw-r--r--roles/httpd/templates/httpd.conf.j25
-rw-r--r--roles/website/templates/httpd.conf.j25
2 files changed, 5 insertions, 5 deletions
diff --git a/roles/httpd/templates/httpd.conf.j2 b/roles/httpd/templates/httpd.conf.j2
index 4839cd0..45b46c3 100644
--- a/roles/httpd/templates/httpd.conf.j2
+++ b/roles/httpd/templates/httpd.conf.j2
@@ -12,11 +12,6 @@ types {
image/png png
}
-location "/.well-known/acme-challenge/*" {
- root "/acme"
- request strip 2
-}
-
{% for file in configurations.files %}
include "{{ file.path }}"
{% endfor %}
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.