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:
neil 2026-11-04 18:13:19 -08:00
parent 54a765510a
commit efd3836945
10 changed files with 60 additions and 24 deletions

View file

@ -4,7 +4,9 @@ import os
from dataclasses import dataclass
from urllib.parse import urlparse
DEFAULT_PROBE_INSTALL_URL = "https://git.neilbantoc.dev/services/network-monitor/raw/branch/main/install-probe.sh"
# Empty: the probe install command fetches install-probe.sh from the hub itself (/install-probe.sh),
# which works for a private repo. Set PROBE_INSTALL_URL to use another location.
DEFAULT_PROBE_INSTALL_URL = ""
def _list(name: str, default: str) -> list[str]: