location / {
auth_basic "closed site";##Context:http, server, location, limit_except
auth_basic_user_file conf/htpasswd;##Context:http, server, location, limit_except
}
# printf "howhy:$(openssl passwd -crypt 123456)
" >>conf/htpasswd
# cat conf/htpasswd
howhy:xyJkVhXGAZ8tM
systemctl restart nginx