network-monitor/.env.probe.example
neil 54a765510a Network monitor: hub, probes, Docker and native installers
Hub (FastAPI + no-build web UI):
- Network health: live probe/target matrix, status strips, incidents
- Probes: add (with install command), rename, remove, latency and throughput charts
- Clients merged from AdGuard, DHCP, query log and probe ARP tables; names,
  categories, suspicious flag, notes, per-client DNS requests
- Query log, domain detail (clients, related subdomains), blocked domains via
  the AdGuard Home /control API

Probe: tests peers (ping, HTTP, throughput), gateway, LAN and public DNS,
internet URLs and an optional VPS; buffers results while the hub is down.
Gateway and ARP from /proc/net on Linux, route/arp on macOS.

Install: install.sh (hub) and install-probe.sh (generated from it), each in
docker mode (compose; default on Linux hosts) or native mode (venv + systemd
or launchd; default on macOS and in LXC). Both modes deploy with an update
command that checks the new commit and rolls back on failure.

CLAUDE.md carries shared context for Claude Code sessions on each machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 18:10:29 -08:00

27 lines
1,019 B
Text

# install-probe.sh writes .env from this file on each probe machine (see README).
# Gitignored. The container reads it at startup and on every `update`; no rebuild needed.
# The remote the container pulls the source from, and the branch/tag it follows.
REPO_URL=https://git.neilbantoc.dev/services/network-monitor.git
REPO_REF=main
# Private repo over https: a read-only access token. Leave empty for a public repo.
GIT_USERNAME=
GIT_TOKEN=
# Or private repo over SSH: an ssh REPO_URL and a base64 deploy key (base64 -w0 deploy_key).
GIT_SSH_KEY=
# docker or native (systemd / launchd). Set by the installer; see install-probe.sh.
INSTALL_MODE=
# The hub this probe reports to, and the token from the hub's "Add probe" dialog.
# Leave both empty for a serve-only probe (a VPS the others test against).
HUB_URL=
PROBE_TOKEN=
# Port of the probe's test server, on all interfaces (host networking).
PROBE_PORT=8765
# The address other probes should use to reach this one. Empty = what the hub sees.
ADVERTISE_ADDR=