read -p "输入要添加的用户名: " USERNAME
read -p "输入密码: " PASSWD
printf "$USERNAME:$(openssl passwd -crypt ${PASSWD})
" >> passwd
nginx:
location / {
auth_basic "Please enter username and password for login";
auth_basic_user_file /app/tengine-2.1.2/httpasswd/passwd;
proxy_pass http://localhost:9090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}