From d20fff93329f2bf7b4d19705c7598cedc2c924ac Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Wed, 6 Mar 2019 00:07:47 -0500 Subject: Load custom nginx templates if needed. Include acme-challenge on default vhost --- templates/nginx/acme-challenge | 3 ++- templates/nginx/nginx.conf | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'templates') 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; -- cgit v1.2.3