streamd: serve start/stop/update, streamd.yaml, egress, module panel fixes
- Add streamd serve start|stop|restart|status|update with auto-written streamd.yaml - Panel modules: STREAMD_MODULES_DIR for describe, YAML channel fallback, textarea value fix - Per-stream WireGuard/SOCKS egress profiles + Settings UI - Drop drm-* from release builds; track streamd-bg.sh / streamd-update.sh wrappers - Docs: streamd-server-setup lifecycle and update flow
This commit is contained in:
parent
da8e1123ec
commit
8fc7e4c0b8
57 changed files with 4031 additions and 257 deletions
|
|
@ -16,7 +16,7 @@ streams, screen/systemd so it survives closing the terminal).
|
|||
| Flag | Default | Purpose |
|
||||
|---|---|---|
|
||||
| `--bind` | `127.0.0.1:8083` | listen address (loopback). Non-loopback logs a warning |
|
||||
| `--data` | `.cache/streamd` | SQLite, work dirs, HLS output, logs |
|
||||
| `--data` | auto (see below) | SQLite, work dirs, HLS output, logs. If omitted: `$STREAMD_DATA`, else existing `./.cache/streamd`, else existing `<install>/.cache/streamd`, else create `./.cache/streamd` |
|
||||
| `--token` | `$STREAMD_TOKEN` | legacy admin API key (prefer dashboard API keys) |
|
||||
| `--admin-user` / `--admin-pass` | — | create first admin on empty install |
|
||||
| `--nre` | `$NRE_PATH`, `bin/`, `PATH`, auto-download | N_m3u8DL-RE |
|
||||
|
|
@ -36,13 +36,17 @@ anonymous for liveness; stream list and mutations need a principal. Legacy
|
|||
`--token` / `STREAMD_TOKEN` still works as an admin key and prints a migration
|
||||
warning.
|
||||
|
||||
### Keys and proxy
|
||||
### Keys, proxy, and egress
|
||||
|
||||
- **MPD** is required to start. **Keys are optional** (clear streams such as BBC).
|
||||
- Per-stream **`proxy`** (`socks5://127.0.0.1:1080` or `http://…`) is passed to
|
||||
N_m3u8DL-RE as `--custom-proxy` so origin fetches can egress via a UK SOCKS
|
||||
sidecar while the host itself stays elsewhere. The local MPD rewrite fetch
|
||||
uses the same proxy. Outbound HLS you serve is unaffected.
|
||||
N_m3u8DL-RE as `--custom-proxy`. The local MPD rewrite fetch uses the same
|
||||
proxy. Outbound HLS you serve is unaffected.
|
||||
- Per-stream **`egress`** names a profile from **Settings → Egress** (WireGuard
|
||||
netns + local SOCKS on Linux, or a plain SOCKS URL profile). Resolve order:
|
||||
explicit `proxy` → named egress SOCKS → direct. Full-tunnel WG stays inside
|
||||
`streamd-<name>` netns so SSH/UI keep the host route. See
|
||||
[streamd-server-setup.md](streamd-server-setup.md) §7.
|
||||
- **Variants** (FHD / HD / SD): FHD is the source copy at `/hls/<name>/index.m3u8`.
|
||||
Enabling HD/SD starts live ffmpeg ladders at `/hls/<name>-hd/` and
|
||||
`/hls/<name>-sd/`. The dashboard Copy button copies the absolute m3u8 URL
|
||||
|
|
@ -61,9 +65,16 @@ warning.
|
|||
| `PUT /api/modules/:name` | save `module.yaml` (operator; JSON `{"yaml":…}` or raw YAML) |
|
||||
| `POST /api/modules/upload` | multipart zip upload (`file` + optional `name`) |
|
||||
| `DELETE /api/modules/:name` | remove a module from the panel store |
|
||||
| `GET /api/egress` | list egress profiles (viewer+) |
|
||||
| `POST /api/egress` | create profile (admin) |
|
||||
| `GET /api/egress/:name` | profile status |
|
||||
| `PUT /api/egress/:name` | update enabled/kind/socks_url/conf (admin) |
|
||||
| `PUT /api/egress/:name/conf` | upload WireGuard conf (admin) |
|
||||
| `POST /api/egress/:name/up\|down\|test` | bring tunnel up/down / probe egress IP |
|
||||
| `DELETE /api/egress/:name` | remove profile (admin) |
|
||||
| `GET /api/streams` | all streams with runtime state |
|
||||
| `POST /api/streams` | create |
|
||||
| `PATCH /api/streams/:id` | update |
|
||||
| `PATCH /api/streams/:id` | update (incl. `egress`) |
|
||||
| `DELETE /api/streams/:id` | remove |
|
||||
| `POST /api/streams/:id/start\|stop\|restart` | desired state |
|
||||
| `POST /api/streams/:id/capture` | ask connected agents to refresh credentials now |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue