Docs: repo is public; simplify install commands

The raw installer URL is confirmed (200, matches main) and anonymous clone
works, so installs need no token. Private-repo steps move to a fallback note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
neil 2026-11-04 18:16:12 -08:00
parent efd3836945
commit edeb77f833
2 changed files with 13 additions and 19 deletions

View file

@ -16,10 +16,11 @@ A home network monitor with two roles, built from one repo:
While the hub is unreachable, results queue in memory and upload later. With no `HUB_URL` it is serve-only, e.g. on a VPS.
Remote: `https://git.neilbantoc.dev/services/network-monitor.git` (Gitea). **The repo is private.** Anonymous requests to its web, API and raw URLs return 404. Machines need a read-only token (`GIT_TOKEN`, saved in their `.env`) to clone and update.
Remote: `https://git.neilbantoc.dev/services/network-monitor.git` (Gitea). The repo is public, so anonymous clone and fetch work and installs need no token.
- **Hub install:** fetch the installer with `curl -H "Authorization: token $GIT_TOKEN" https://git.neilbantoc.dev/services/network-monitor/raw/branch/main/install.sh`. That raw path is assumed from Gitea's URL scheme and hasn't been confirmed with a token yet. If it 404s, `git clone` the repo and run `install.sh` from the clone.
- **Probe installs:** fetch `install-probe.sh` from the hub (`http://<hub>:8000/install-probe.sh`, open even with `UI_PASSWORD`). The Add probe dialog builds that command.
- **Hub installer:** `https://git.neilbantoc.dev/services/network-monitor/raw/branch/main/install.sh`. Confirmed: returns 200 and matches `main`.
- **Probe installer:** the Add probe dialog fetches it from the hub (`http://<hub>:8000/install-probe.sh`, open even with `UI_PASSWORD`), so probe installs don't depend on Gitea's raw URLs. It is also at the raw URL.
- **If the repo becomes private:** the installers ask for a read-only `GIT_TOKEN` and save it in `.env` for updates.
## Deployment modes