This commit is contained in:
teasiu
2022-09-26 17:12:36 +08:00
parent a1c438fe8b
commit 0200b76688

View File

@@ -37,5 +37,24 @@ echo "## 这是外置磁盘链接到home的页脚说明" > /mnt/sda1/files/_h5ai
## 访问密码修改
- 更改密码
```bash
echo -n 'admin:' | tee /etc/nginx/passwords.list
openssl passwd -apr1 | tee -a /etc/nginx/passwords.list
nginx -s reload
```
- 删除密码
取消h5ai登陆密码
```bash
vi /etc/nginx/locations.d/h5ai
```
```bash
#将后面两行删掉即可:
auth_basic "admin";
auth_basic_user_file /etc/nginx/passwords.list;
#最后重启一下nginx服务
nginx -s reload
```