feat: add agent start code

This commit is contained in:
engigu
2025-12-28 11:42:58 +08:00
parent 6d7997c92a
commit 78c3707cce
19 changed files with 1491 additions and 501 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
[agent]
# 主服务器地址
# 主服务器地址http/httpsAgent 会自动转换为 WebSocket 连接)
server_url = http://192.168.1.100:8052
# Agent 名称(留空则使用主机名)
name = agent-01
# Token(由服务器下发,首次运行留空
name =
# 注册令牌(首次注册时填写,注册成功后会自动替换为认证 Token
token =
# 心跳间隔(秒)
# 心跳间隔(秒),默认 30
interval = 30
# 自动更新(true/false
auto_update = true