feat: add MONITOR_PORT env var and monitorPort config field

- Added MonitorPort field to Config struct (TODO 5.1)
- Config loads from MONITOR_PORT or HF_MONITOR_PORT env vars
- Added to Dockerfile env defaults
- Updated config.example.json
- Merge function handles monitorPort from file config

Prepares Monitor for local plugin communication bridge (TODO 5.1, 5.2)
This commit is contained in:
zhi
2026-03-21 15:25:02 +00:00
parent 739b8fcd74
commit ccfa49bc7d
3 changed files with 9 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ ENV HF_MONITER_BACKEND_URL=https://monitor.hangman-lab.top \
HF_MONITER_API_KEY= \
HF_MONITER_REPORT_INTERVAL=30 \
HF_MONITER_LOG_LEVEL=info \
HF_MONITER_ROOTFS=/host
HF_MONITER_ROOTFS=/host \
MONITOR_PORT=0
ENTRYPOINT ["/usr/local/bin/harborforge-monitor"]