feat: 登录有效期24小时 + Cloudflare Turnstile 人机验证

- jwt_ttl 7200 → 86400 (24h)
- 管理登录/代理登录/代理注册 接入 Turnstile
- 前端 TurnstileWidget 组件, 未完成验证不可提交
- 密钥通过 env TURNSTILE_SITE_KEY/SECRET_KEY 配置
This commit is contained in:
root committed 2026-10-11 15:09:54 +08:00
1 parent 5b73d0921d
commit e90ade2ba0
10 files changed
+230 -12

No files matched your search

+1 -1
View File
@@ -236,7 +236,7 @@ curl -s http://your-domain/api/cron/notify-expiring
| 类型 | 说明 |
|------|------|
| **JWT Token** | 登录后获取,请求头 `Authorization: Bearer <token>`,有效期 24 小时 |
| **JWT Token** | 登录后获取,请求头 `Authorization: Bearer <token>`,有效期 **24 小时** |
| **API Key** | 项目密钥,仅用于授权验证接口,请求头 `X-Api-Key: <key>` |
| **公开接口** | 无需认证,有频率限制(60秒内 30 次) |