Add log retention settings and clear logs

This commit is contained in:
2026-05-28 23:36:39 +08:00
parent 680cb34000
commit 68ad064f80
5 changed files with 108 additions and 11 deletions
+4 -1
View File
@@ -9,6 +9,7 @@
- 检测间隔、超时、失败/恢复阈值可配置
- 通知渠道:Bark、PushPlus、Autman、Webhook
- SQLite 保存检测记录、事件和通知日志
- 可配置单节点最多保留的监测记录数,并可一键清空日志
- Docker / Docker Compose 部署
## 快速启动
@@ -43,7 +44,8 @@ python3 app.py --host 0.0.0.0 --port 8787 --config config.json
"interval_seconds": 300,
"timeout_seconds": 8,
"fail_threshold": 3,
"recover_threshold": 1
"recover_threshold": 1,
"max_checks_per_proxy": 500
}
```
@@ -96,6 +98,7 @@ Autman 通道适配 `/m/push1` 消息推送插件,发送 JSON:
```text
GET /api/status
PUT /api/settings
DELETE /api/logs
POST /api/check/<id>
POST /api/notify/test
GET /api/proxies