Merge pull request #254 from tersor/master
Enable Letsencrypt installation on sites that use basic auth
This commit is contained in:
@@ -35,6 +35,7 @@ location ~ /\.(?!well-known\/) {
|
|||||||
location /.well-known/acme-challenge/ {
|
location /.well-known/acme-challenge/ {
|
||||||
alias /var/www/html/.well-known/acme-challenge/;
|
alias /var/www/html/.well-known/acme-challenge/;
|
||||||
allow all;
|
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
|
# 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)" {
|
location ~* "/(^$|readme|license|example|README|LEGALNOTICE|INSTALLATION|CHANGELOG)\.(txt|html|md)" {
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ server {
|
|||||||
location /.well-known/acme-challenge/ {
|
location /.well-known/acme-challenge/ {
|
||||||
alias /var/www/html/.well-known/acme-challenge/;
|
alias /var/www/html/.well-known/acme-challenge/;
|
||||||
allow all;
|
allow all;
|
||||||
|
auth_basic off;
|
||||||
}
|
}
|
||||||
{{/proxy}}
|
{{/proxy}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user