feat(headscale): add headplane web UI at /admin
Integrate headplane (ghcr.io/tale/headplane) into the headscale stack, served by Caddy at /admin. API-only (no Docker socket); deploy.sh mints a headscale API key on first run, generates headplane.yaml, and wires optional OIDC login via pocket-id (second client, /admin/oidc/callback). Adds HEADPLANE_* env, compose service, Caddy routing; rebuild embedded archive.
This commit is contained in:
6 files changed
+230
-84
No files matched your search
@@ -47,6 +47,30 @@ Unattended provisioning: [`cloud-init.yml`](cloud-init.yml).
|
||||
DNS for `HEADSCALE_DOMAIN` must resolve to the host and 80/443 be reachable
|
||||
before deploy.
|
||||
|
||||
## Headplane (web UI)
|
||||
|
||||
[Headplane](https://github.com/tale/headplane) ships in the stack, served by
|
||||
Caddy at **`https://HEADSCALE_DOMAIN/admin`**. It runs **API-only** — it talks
|
||||
to the headscale API with a key and does *not* get the Docker socket, so it
|
||||
can't control the host. `deploy.sh` mints the headscale API key automatically
|
||||
on first deploy (stored in `.env`) and generates `headplane.yaml`.
|
||||
|
||||
**Login:** to use OIDC via pocket-id, register a **second** OIDC client in
|
||||
pocket-id with redirect URI:
|
||||
|
||||
```
|
||||
https://HEADSCALE_DOMAIN/admin/oidc/callback
|
||||
```
|
||||
|
||||
and pass `HEADPLANE_OIDC_CLIENT_ID` / `HEADPLANE_OIDC_CLIENT_SECRET` (prompted
|
||||
by the launcher, or set in `.env`). Leave them blank to use headplane's
|
||||
API-key login instead. Pin the image with `HEADPLANE_TAG` (defaults to
|
||||
`latest`).
|
||||
|
||||
> headplane integration is version-sensitive; if the UI doesn't come up,
|
||||
> check `docker compose logs headplane` and verify `headplane.yaml` /
|
||||
> the minted `HEADPLANE_HS_API_KEY` in `.env`.
|
||||
|
||||
## ACL policy
|
||||
|
||||
A starter ACL ships in [`policy.hujson`](policy.hujson) (installed to
|
||||
|
||||
Reference in new issue
Block a user