Serve installers from the hub; document the private-repo install
The repo is private, so anonymous raw URLs return 404. The hub now serves /install-probe.sh (and /install.sh) from its own checkout, open even with UI_PASSWORD, and the Add probe command fetches from there. The installers still ask for a read-only token to clone. Docs use Gitea's "Authorization: token" header and give a git-clone fallback for the hub. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
54a765510a
commit
efd3836945
10 changed files with 60 additions and 24 deletions
|
|
@ -16,7 +16,10 @@ 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 installers are fetched from `https://git.neilbantoc.dev/services/network-monitor/raw/branch/main/<file>`. That raw URL pattern is an assumption about this Gitea instance; if curl gets a 404, fix it in `install.sh`, `scripts/build-installers.sh`, `app/hub/settings.py` (`DEFAULT_PROBE_INSTALL_URL`) and the README.
|
||||
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.
|
||||
|
||||
- **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.
|
||||
|
||||
## Deployment modes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue