mirror of
https://github.com//cppla/ServerStatus
synced 2026-08-06 10:23:57 +08:00
update version 1.1.8
This commit is contained in:
@@ -7,9 +7,9 @@ ServerStatus 是一个轻量的服务器探针和云监控面板,支持多节
|
|||||||
[](https://github.com/cppla/ServerStatus)
|
[](https://github.com/cppla/ServerStatus)
|
||||||
[](https://github.com/cppla/ServerStatus)
|
[](https://github.com/cppla/ServerStatus)
|
||||||
[](https://github.com/cppla/ServerStatus)
|
[](https://github.com/cppla/ServerStatus)
|
||||||
[](https://github.com/cppla/ServerStatus)
|
[](https://github.com/cppla/ServerStatus)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
`Watchdog 的 `interval` 是最小通知间隔,用于避免频繁报警,并不是探测间隔。`rule` 使用 Exprtk 表达式,当前窄字符解析对中文等 Unicode 字符不友好,规则中建议使用英文、数字和字段名。`
|
`Watchdog 的 `interval` 是最小通知间隔,用于避免频繁报警,并不是探测间隔。`rule` 使用 Exprtk 表达式,当前窄字符解析对中文等 Unicode 字符不友好,规则中建议使用英文、数字和字段名。`
|
||||||
|
|
||||||
@@ -87,24 +87,6 @@ docker run -d --restart=always --name=serverstatus-client \
|
|||||||
| `CM` | `cm.tz.cloudcpp.com` | 移动探测地址 |
|
| `CM` | `cm.tz.cloudcpp.com` | 移动探测地址 |
|
||||||
| `CLIENT` | `psutil` | 客户端实现,可选 `psutil` 或 `linux` |
|
| `CLIENT` | `psutil` | 客户端实现,可选 `psutil` 或 `linux` |
|
||||||
|
|
||||||
## WebUI 配置管理
|
|
||||||
|
|
||||||
WebUI 顶部保留四个入口:
|
|
||||||
|
|
||||||
- `主机`:节点列表、筛选、排序和右侧详情。
|
|
||||||
- `服务`:服务监测结果。
|
|
||||||
- `证书`:SSL 证书检查结果。
|
|
||||||
- `配置`:编辑 `servers`、`monitors`、`sslcerts`、`watchdog`。
|
|
||||||
|
|
||||||
使用配置页前需要:
|
|
||||||
|
|
||||||
1. 服务端设置 `ADMIN_TOKEN`。
|
|
||||||
2. 打开 http://127.0.0.1:8080/。
|
|
||||||
3. 进入「配置」页,输入 `ADMIN_TOKEN`。
|
|
||||||
4. 保存后服务端会写入 `config.json` 并向 `sergate` 发送 `SIGHUP` 重载。
|
|
||||||
|
|
||||||
如果你使用 Docker 单文件 bind mount 挂载 `config.json`,管理 API 会自动兼容 Docker 的 `EBUSY` 写入限制:先备份,再原地写回。
|
|
||||||
|
|
||||||
## HTTP 管理 API
|
## HTTP 管理 API
|
||||||
|
|
||||||
Docker 服务端镜像已内置 HTTP API,并通过 nginx 暴露在 Web 端口下。源码手动运行时需要单独启动 `server/manage_api.py`;如果要让 WebUI 的「配置」页可用,还需要把 `/api/` 反代到 `manage_api.py`。认证方式:
|
Docker 服务端镜像已内置 HTTP API,并通过 nginx 暴露在 Web 端口下。源码手动运行时需要单独启动 `server/manage_api.py`;如果要让 WebUI 的「配置」页可用,还需要把 `/api/` 反代到 `manage_api.py`。认证方式:
|
||||||
|
|||||||
Reference in New Issue
Block a user