Commit Graph

121 Commits

Author SHA1 Message Date
f3388f52bc Plan: media-admins group for full copyparty rights in phase 5
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 01:24:46 -05:00
e3fb5db424 STATUS: Go Live verified end to end; remaining items
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 01:22:14 -05:00
2510cfaceb sweep: portable VFR detection (mawk has no asort; the check silently passed every file on Debian)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 01:20:32 -05:00
f17e57db63 MediaMTX container TZ=America/New_York so recording filenames match the server clock
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 01:18:54 -05:00
94db824243 configure.py: optional bare-domain Caddy block (redirect to the watch site by default)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 01:12:22 -05:00
f06ebc1ec1 Plan: phase 11 — MediaMTX auth via Authentik (JWT for the browser, app passwords for OBS, no stream keys)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 00:58:50 -05:00
4b4c7eaedf Go Live: MediaMTX credentials via X-Stream-Auth -> Authorization on the Caddy->MediaMTX hop (WebRTC ignores query params); fix WHIP session DELETE path
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 00:56:56 -05:00
dff31b0b37 Docs audit: phase-1 script prints domain-level forward-auth + roles sync; install.sh creates /srv/live; STATUS current
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 00:55:33 -05:00
37b619055b compose: MediaMTX -ffmpeg image, loopback HLS/WebRTC/API ports, 8189, hook env (earlier edit never applied)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 00:53:09 -05:00
8333941e3d MediaMTX: disable MoQ (unused; noisy cert warnings on 1.21)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 00:50:12 -05:00
357bb61b65 MediaMTX: write webrtcAdditionalHosts into the generated config (env-based value left it empty and MediaMTX refused to start)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 00:48:27 -05:00
b2869c3740 Generated configs out of the repo: *.example.* templates only; configure.py refuses to apply over CHANGEME placeholders
A deploy copied mediamtx.yml (template) over the server's generated file and the next apply
wiped all streamers. Generated files are now gitignored so scp -r cannot clobber them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 00:32:30 -05:00
50d2f1c21d Caddy: mount /srv/live (live portal returned 404 inside the container)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 00:25:44 -05:00
384a7ed552 Per-host group gating in Caddy from X-Authentik-Groups; Discord roles -> Authentik groups policy; domain-level forward auth documented
BOT_REQUIRE_GROUP / LIVE_REQUIRE_GROUP in .env drive a header_regexp matcher after forward_auth
(403 before the app). authentik/discord-roles-to-groups.py syncs Discord roles into groups at
every login so access follows Discord roles without manual edits.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-30 23:22:20 -05:00
bee53f2718 README: domain-level forward auth as the recommended Authentik setup
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-30 23:19:45 -05:00
4b4053a407 README: Authentik forward-auth setup for live/bot hosts
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-30 23:12:56 -05:00
82df0b1583 Live portal: Go Live — browser window capture published over WHIP as <user>/HelmetCam-<date>; dumpd /me/stream-key
Go Live closes viewer windows, fetches the Authentik-identified user's MediaMTX key from dumpd
(/etc/vanguard/streamers.json written by configure.py), opens Chrome's window-only picker with
audio, prefers H.264 so MediaMTX can record, caps at 12 Mbps / 1440p60, shows live stats, Stop.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-30 23:04:33 -05:00
463d9b2385 Live portal: React + dockview multi-stream viewer behind Authentik; MediaMTX HLS/WebRTC/API re-enabled; is-live Discord hook
live/: every active stream opens as a dockable window (WHEP, HLS fallback), audio follows the
focused window, per-window mute/volume, pinning. Caddy live.HOST block with forward-auth proxies
/api /webrtc /hls to MediaMTX on loopback and serves /srv/live. WebRTC media on 8189 (firewall).
configure.py asks the live hostname and an optional Discord webhook; MediaMTX -ffmpeg image runs
the runOnReady hook. deployLive.sh builds and ships dist/.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-30 23:01:11 -05:00
3d42271ae2 Record streams into hidden .live/ and publish finished files via the sweep; plugin 0.1.2 feed wording
Jellyfin indexed in-progress fragmented recordings (no duration -> seek jumped to next episode).
MediaMTX now writes under <Title>/.live/; the sweep remuxes finished files into the title folder
and removes the source. Feed says 'New recording' since it fires after publish.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-30 22:45:30 -05:00
6fb0f6da30 STATUS: repo now hosted on the stack's Gitea
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-30 15:56:44 -05:00
c602a6ff52 Vanguard media stack: ingest, copyparty, Syncthing, normalize sweep, Authentik, Jellyfin + Vanguard Metadata plugin, MariaDB, Gitea, bot runtime
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-30 15:43:30 -05:00