aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/nginx/acme-challenge3
-rw-r--r--templates/nginx/nginx.conf2
2 files changed, 4 insertions, 1 deletions
diff --git a/templates/nginx/acme-challenge b/templates/nginx/acme-challenge
index 934999f..fad9cad 100644
--- a/templates/nginx/acme-challenge
+++ b/templates/nginx/acme-challenge
@@ -1,4 +1,5 @@
location /.well-known/acme-challenge {
# This works for acmetool. If using letsencrypt change 'alias' to 'root'
- alias /var/lib/acme-challenge;
+ alias /var/run/acme/acme-challenge/;
+ # alias /var/lib/acme-challenge;
}
diff --git a/templates/nginx/nginx.conf b/templates/nginx/nginx.conf
index 3bf546f..eb622d5 100644
--- a/templates/nginx/nginx.conf
+++ b/templates/nginx/nginx.conf
@@ -24,6 +24,8 @@ http {
listen [::]:80;
server_name localhost;
+ include acme-challenge;
+
location / {
root /usr/share/nginx/html;
index index.html index.htm;