Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
C018 authored Oct 21, 2024
1 parent b016b83 commit c38aeba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,7 @@ https.createServer(options, app).listen(PORT, () => {

1. **证书路径**:请在 `server.js` 中替换 `/root/nftables-nat-rust-webui/ssl/private-key.pem``/root/nftables-nat-rust-webui/ssl/certificate.pem` 为您的 SSL 证书和私钥的实际路径。
2. **读取权限**:确保 Node.js 进程对 `/etc/nat.conf``passwd.md` 的读取权限。
3. **密码文件**:用户名和密码可以用`bcryptTool.js`生成,确保 `passwd.md` 文件的格式为 `用户名:哈希密码`,例如 `admin:$2b$10$gY9KnYXxJ.PqybUkf0z2y.VD2LZX1X5LfKoJu9zW0PzW.q34654eO`。<span style="color: red;">更改或者新增之后需要重启程序。</span>

3. **密码文件**:用户名和密码可以用`bcryptTool.js`生成,确保 `passwd.md` 文件的格式为 `用户名:哈希密码`,例如 `admin:$2b$10$gY9KnYXxJ.PqybUkf0z2y.VD2LZX1X5LfKoJu9zW0PzW.q34654eO``更改或者新增之后需要重启程序。`
4. **安装依赖**:确保已用以下命令安装需要的 npm 包:
```bash
npm init -y && npm install express bcrypt cookie-parser body-parser fs https
Expand Down

0 comments on commit c38aeba

Please sign in to comment.