Disable auth for certbot webroot challenge.
This commit is contained in:
parent
a1ee2f85f8
commit
40a91f6d66
4 changed files with 21 additions and 1 deletions
|
|
@ -2,8 +2,15 @@ server {
|
|||
listen 80 default_server;
|
||||
root "/usr/share/nginx/html";
|
||||
|
||||
error_page 404 404.html;
|
||||
|
||||
location / {
|
||||
auth_basic "Restricted";
|
||||
auth_basic_user_file auth.htpasswd;
|
||||
}
|
||||
|
||||
# Disable authentication for certbot challenge dir.
|
||||
location /.well-known/acme-challenge/ {
|
||||
auth_basic off;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue