-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
建议加个登录验证页面 #3
Labels
enhancement
New feature or request
Comments
您好暴漏出来为了方便管理,如果涉及到认证后面会涉及到密码修改,这样会多出一个数据库的操作。这个面包主要是为了方便快捷管理开发。如果想加密码可以考虑 nginx 反代加密码 :) |
@kmm996 生成密码mkdir -p /usr/local/nginx/conf/passwd
htpasswd -c -b /usr/local/nginx/conf/passwd/docker.passwd user password
## 或者
echo "用户名:$(openssl passwd -crypt 密码)" >>/usr/local/nginx/conf/passwd/docker.passwd Nginx 配置参考server {
listen 80;
auth_basic "Restricted Access";
auth_basic_user_file /usr/local/nginx/conf/passwd/docker.passwd;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
} 有问题请回复,三天后将关闭issues |
反代加密码 好办法~ |
Closed
@jialezi666 @xmmaster 添加了一个简单的验证页面 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
建议加个登录验证页面,面板直接暴露出来有点危险
The text was updated successfully, but these errors were encountered: