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

@@ -193,7 +193,7 @@ module.exports = {
```bash
# Initialize
npm run setup # Will randomly generate admin account password info, stored in data/Init.json
npm run setup # Will randomly generate admin account password info, stored in data/init.json
# Start service
npm run service:start:daemon # Run in background (recommended)
@@ -210,7 +210,7 @@ npm run service:status
Browser visit: `http://your-server-IP:3000/web`
Default admin account: Look in data/Init.json
Default admin account: Look in data/init.json
### 2. Add Claude Account
@@ -310,10 +310,16 @@ It's recommended to use nginx reverse proxy and configure SSL certificate: (The
**1. Install nginx and obtain SSL certificate**
```bash
# Ubuntu/Debian
sudo apt install nginx certbot python3-certbot-nginx
sudo apt install nginx
# Install acme.sh
curl https://get.acme.sh | sh
source ~/.bashrc
# Get free SSL certificate (using Let's Encrypt as example)
sudo certbot --nginx -d your-domain.com
acme.sh --issue -d your-domain.com --nginx
# Or use standalone mode
# acme.sh --issue -d your-domain.com --standalone
```
**2. nginx configuration example**