Expand description
runnerd-web: the dashboard the daemon serves on a loopback TCP port. It is a client of the daemon’s API like
runnerctl: it reads runnerd_core::api types over the daemon’s Unix socket (runnerd_core::client), renders
HTML on the server (views, chart), and keeps open pages current over SSE with Datastar (live). Writes
(pause, reseed, the config) are passed on to the same API (actions). It holds no state of its own beyond the
session (auth), and never talks to Docker or GitHub.
Constants§
- DEFAULT_
ADDR - The dashboard’s default address.
Functions§
- listen
- Binds the dashboard’s port from
runnerd serve --web: a loopback address, orofffor no dashboard. Only loopback: the session cookie travels in the clear. - login_
file - Where the daemon serving its API on
socketkeeps the dashboard’s login URL:runnerd.sock→runnerd.web.runnerctl webreads it. - serve
- Serves the dashboard on
listenerfor the daemon whose API is onsocket, untilstopcompletes. Writes the one-time login URL tologin_file(socket)and removes it when done. - spawn
- Runs
serveas a task, logging why it stopped if it failed.