diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-03-06 00:07:47 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-03-06 00:07:47 -0500 |
| commit | d20fff93329f2bf7b4d19705c7598cedc2c924ac (patch) | |
| tree | 403198a6a2244d88d707b1fe1a2228ac22d33554 /templates | |
| parent | 7b977aed7f40ccd866a51057db2fac2ca4d3777e (diff) | |
| download | nginx-d20fff93329f2bf7b4d19705c7598cedc2c924ac.tar.gz nginx-d20fff93329f2bf7b4d19705c7598cedc2c924ac.tar.xz | |
Load custom nginx templates if needed. Include acme-challenge on default vhost
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/nginx/acme-challenge | 3 | ||||
| -rw-r--r-- | templates/nginx/nginx.conf | 2 |
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; |
