notes/docker/nginx.conf

16 lines
366 B
Nginx Configuration File

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;
}
}