feat: 优化SSL证书获取推荐和token刷新机制

- 将README中的certbot推荐改为acme.sh,更轻量且功能更强
- 中英文文档同步更新SSL证书获取方式
- 调整token刷新提前时间从10秒改为60秒,提供更充足的缓冲时间

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
shaw
2025-07-16 16:15:17 +08:00
parent 59bc309ae4
commit 48c09b1286
3 changed files with 25 additions and 10 deletions

View File

@@ -194,7 +194,7 @@ module.exports = {
```bash
# 初始化
npm run setup # 会随机生成后台账号密码信息,存储在 data/Init.json
npm run setup # 会随机生成后台账号密码信息,存储在 data/init.json
# 启动服务
npm run service:start:daemon # 后台运行(推荐)
@@ -211,7 +211,7 @@ npm run service:status
浏览器访问:`http://你的服务器IP:3000/web`
默认管理员账号data/Init.json 中寻找
默认管理员账号data/init.json 中寻找
### 2. 添加Claude账户
@@ -312,10 +312,16 @@ redis-cli ping
**1. 安装nginx和获取SSL证书**
```bash
# Ubuntu/Debian
sudo apt install nginx certbot python3-certbot-nginx
sudo apt install nginx
# 安装 acme.sh
curl https://get.acme.sh | sh
source ~/.bashrc
# 获取免费SSL证书以Let's Encrypt为例
sudo certbot --nginx -d your-domain.com
acme.sh --issue -d your-domain.com --nginx
# 或者使用 standalone 模式
# acme.sh --issue -d your-domain.com --standalone
```
**2. nginx配置示例**