Tangled spindle backed by crowci

crow: dashboard at /dash, invite-only spindles #3

Merged botless.tngl.sh
targeting main from crow-dash
Merged opened by botless.tngl.sh
targeting main from crow-dash

Serves Crow's dashboard at https://crow.boltless.dev/dash, and makes both spindles invite-only (boltless.me and the bot are allowed).

spindle-crow gets SPINDLE_CROW_WEB_ROOT, Crow's upstream root path: the API, login and UI live under it, and Crow's links (CI_SYSTEM_URL, CI_PIPELINE_URL) include it. The admin password check on /authorize now follows the root path; without that, /dash/authorize logged in without a password.

Crow's Go module ships no UI files, so the flake builds them (crow-web) from the pinned Crow source and rewrites /BASE_PATH the way upstream's server does at runtime. Crow's bun.lock is lockfileVersion 2, which nixpkgs' bun 1.3 can't read, so the build uses bun 1.4.5's release binary; the node_modules hash is x86_64-linux's. On the host, a loopback nginx server serves the files (with the single-page app fallback) as spindle-crow's SPINDLE_CROW_WEB_PROXY.

The allow-list itself lives in each spindle's database, set with org.tangled.unspecced.spindle.admin.allowUser.

Commits 4

nix: crow's dashboard at crow.boltless.dev/dash
nix: build crow's web ui for a root path
spindle-crow: serve crow's web ui and api under a root path
nix: serve only allowed users' repos on both spindles
Sign up or Sign in to add to the discussion.