User für Passwort geschützte Verzeichnisse NGINX

printf "yourusername:$(openssl passwd -apr1)" > /etc/nginx/passwords

server {
# ...
auth_basic "Protected";
auth_basic_user_file passwords;
# ...
}