Enable Letsencrypt installation on sites that use basic auth

This commit is contained in:
tersor
2020-02-12 11:57:13 +01:00
parent 9d3c820b83
commit e8bbd0c370
2 changed files with 2 additions and 0 deletions

View File

@@ -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)" {

View File

@@ -33,6 +33,7 @@ server {
location /.well-known/acme-challenge/ {
alias /var/www/html/.well-known/acme-challenge/;
allow all;
auth_basic off;
}
{{/proxy}}