feat: add multi-host monitoring and configuration

This commit is contained in:
way
2026-09-27 14:20:38 +08:00
parent 974121de99
commit 9824c54d6b
7 changed files with 342 additions and 47 deletions
+17 -1
View File
@@ -1,5 +1,5 @@
# =============================================================================
# PIGWay Pi Control v3.6.0 - 用户配置文件
# PIGWay Pi Control v3.7.0 - 用户配置文件
# =============================================================================
#
# 正式安装后的配置路径:
@@ -25,6 +25,22 @@
# =============================================================================
[device]
# 多机监控中使用的稳定机器标识。auto 表示读取本机 hostname。
# 多台机器的 identifier 必须唯一;修改后重启硬件 Agent 和 API 服务。
identifier = auto
# Web 页面显示名称。auto 表示使用 identifier。
name = auto
[hosts]
# 在作为聚合入口的机器上登记其他节点,每行格式:
# 唯一标识 = http://节点IP:6001
# 示例:
# living-room = http://192.168.1.20:6001
[api]
# API 与 Web 使用同一监听地址和端口。0.0.0.0 允许局域网访问;
# 如只允许本机访问可改为 127.0.0.1。修改后重启 API 服务生效。