fix: 修复多个高优 Issue (#160, #165, #156, #159, #151)

- #160 Gateway 死循環: _autoPairAndReconnect 后不调用 reconnect() 避免重置计数器
- #165 readConfig 未定义: 替换为内联 fs.readFileSync/writeFileSync
- #156 systemd PATH: findOpenclawBin 添加 npm 全局路径, systemd 服务注入 PATH
- #159 Docker 双容器冲突: 新增 DISABLE_GATEWAY_SPAWN 环境变量开关
- #151 Gateway 检测冲突: linuxCheckGateway 验证进程名, 拒绝操作非 OpenClaw 进程
This commit is contained in:
晴天
2026-03-30 23:13:24 +08:00
parent 87d7c227d8
commit f5d32c377c
5 changed files with 311 additions and 11 deletions

View File

@@ -61,6 +61,8 @@ services:
# OpenClaw Gateway 地址(如果 Gateway 不在本地,修改为实际地址)
# 注意host 模式下直接使用 localhost 或 127.0.0.1
- OPENCLAW_URL=http://127.0.0.1:18789
# 双容器模式下禁止面板自动启动 Gateway取消注释
# - DISABLE_GATEWAY_SPAWN=1
# 如果需要代理(取消注释并修改为实际代理地址)
# - HTTP_PROXY=http://host.docker.internal:7890
# - HTTPS_PROXY=http://host.docker.internal:7890