streamd: optional keys, per-stream proxy, auto deps; agent module.yaml sync; RTE AutoPlay; Telegram release announces
- streamd: MPD-only start, proxy field, ffmpeg/NRE/mp4decrypt auto-install - GET/PUT /api/modules for module.yaml sync; agent sync_modules - RTE Live-tab AutoPlay fixes; modules zip named bbc/rte/tg4.zip - Telegram notify scripts wired into Forgejo release workflows
This commit is contained in:
parent
f9c28be3f1
commit
ac8701b5a6
36 changed files with 1460 additions and 143 deletions
|
|
@ -14,19 +14,36 @@ run` keeps credentials fresh using real phones.
|
|||
| `--bind` | `0.0.0.0:8083` | listen address |
|
||||
| `--data` | `.cache/streamd` | SQLite, work dirs, HLS output, logs |
|
||||
| `--token` | `$STREAMD_TOKEN` | bearer token for mutating routes |
|
||||
| `--nre` | `$NRE_PATH`, `bin/`, `PATH` | downloader binary |
|
||||
| `--ffmpeg` | `$FFMPEG_PATH`, `bin/`, `PATH` | ffmpeg |
|
||||
| `--mp4decrypt` | `$MP4DECRYPT_PATH`, `bin/`, `PATH` | decrypter |
|
||||
| `--nre` | `$NRE_PATH`, `bin/`, `PATH`, auto-download | N_m3u8DL-RE |
|
||||
| `--ffmpeg` | `$FFMPEG_PATH`, `bin/`, `PATH`, auto-download | ffmpeg |
|
||||
| `--mp4decrypt` | `$MP4DECRYPT_PATH`, `bin/`, `PATH`, auto-download | Bento4 mp4decrypt |
|
||||
| `--bin-dir` | `<repo>/bin` | where auto-downloaded tools are installed |
|
||||
| `--skip-deps` | off | do not download missing tools |
|
||||
|
||||
On start, `serve` resolves media tools and **downloads** ffmpeg (BtbN static),
|
||||
N_m3u8DL-RE (v0.6.0-beta), and mp4decrypt (Bento4) into `bin/` when missing.
|
||||
macOS ffmpeg is not auto-fetched — install with `brew install ffmpeg`.
|
||||
|
||||
Open <http://127.0.0.1:8083>. GET routes are unauthenticated; anything mutating
|
||||
needs `Authorization: Bearer <token>`.
|
||||
needs `Authorization: Bearer <token>`. The header shows ffmpeg / NRE / mp4decrypt
|
||||
status from `/api/health` → `deps`.
|
||||
|
||||
### Keys and proxy
|
||||
|
||||
- **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.
|
||||
|
||||
### API
|
||||
|
||||
| Route | Purpose |
|
||||
|---|---|
|
||||
| `GET /api/health` | liveness + uptime |
|
||||
| `GET /api/apps` | compiled-in modules, their channels, registered rewriters |
|
||||
| `GET /api/health` | liveness + uptime + `deps` paths |
|
||||
| `GET /api/apps` | modules under `modules/`, their channels, registered rewriters |
|
||||
| `GET /api/modules` | list `modules/<name>/` with `has_yaml` + `yaml_sha256` |
|
||||
| `PUT /api/modules/:name` | write `modules/<name>/module.yaml` (bearer; raw YAML or `{"yaml":…}`) |
|
||||
| `GET /api/streams` | all streams with runtime state |
|
||||
| `POST /api/streams` | create |
|
||||
| `PATCH /api/streams/:id` | update |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue