From e8bbd0c37011d3b728f015156fcf550230afe917 Mon Sep 17 00:00:00 2001 From: tersor Date: Wed, 12 Feb 2020 11:57:13 +0100 Subject: [PATCH] Enable Letsencrypt installation on sites that use basic auth --- wo/cli/templates/locations.mustache | 1 + wo/cli/templates/virtualconf.mustache | 1 + 2 files changed, 2 insertions(+) diff --git a/wo/cli/templates/locations.mustache b/wo/cli/templates/locations.mustache index dace54f..b637cfc 100644 --- a/wo/cli/templates/locations.mustache +++ b/wo/cli/templates/locations.mustache @@ -35,6 +35,7 @@ location ~ /\.(?!well-known\/) { location /.well-known/acme-challenge/ { alias /var/www/html/.well-known/acme-challenge/; allow all; + auth_basic off; } # Return 403 forbidden for readme.(txt|html) or license.(txt|html) or example.(txt|html) or other common git repository files location ~* "/(^$|readme|license|example|README|LEGALNOTICE|INSTALLATION|CHANGELOG)\.(txt|html|md)" { diff --git a/wo/cli/templates/virtualconf.mustache b/wo/cli/templates/virtualconf.mustache index e0f2f36..396606f 100644 --- a/wo/cli/templates/virtualconf.mustache +++ b/wo/cli/templates/virtualconf.mustache @@ -33,6 +33,7 @@ server { location /.well-known/acme-challenge/ { alias /var/www/html/.well-known/acme-challenge/; allow all; + auth_basic off; } {{/proxy}}