Streamd v0.2.0: rename, modules panel, stable/beta channels
All checks were successful
release / build-and-upload (push) Successful in 7m5s
All checks were successful
release / build-and-upload (push) Successful in 7m5s
- Rename product/host binary to streamd (drm compat copy still shipped) - Go module path streamd; STREAMD_* env aliases; agent UA streamd-agent - Panel Modules store + agent pull sync (modstore / modsync) - Rolling stable + beta download tags; README/docs channel curl blocks - Release notes in docs/releases/v0.2.0.md attached by Forgejo Actions
This commit is contained in:
parent
066e018749
commit
da8e1123ec
140 changed files with 2949 additions and 851 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# agent
|
||||
|
||||
Always-on credentials refresher, hosted by the single binary as `drm agent`.
|
||||
Always-on credentials refresher, hosted by the single binary as `streamd agent`.
|
||||
|
||||
```text
|
||||
apps/agent/
|
||||
|
|
@ -26,30 +26,33 @@ expire by themselves if the agent dies.
|
|||
|
||||
```bash
|
||||
# terminal 1 — control plane
|
||||
./bin/drm serve --bind 127.0.0.1:8083 --data .cache/streamd
|
||||
./bin/streamd serve --bind 127.0.0.1:8083 --data .cache/streamd
|
||||
|
||||
# terminal 2 — agent (operator API key from streamd Settings → API keys)
|
||||
export STREAMD_API_KEY=ndk_…
|
||||
# or legacy: export STREAMD_TOKEN=…
|
||||
./bin/drm agent run --config apps/agent/agent.yaml
|
||||
./bin/streamd agent run --config apps/agent/agent.yaml
|
||||
```
|
||||
|
||||
```bash
|
||||
./bin/drm agent status
|
||||
./bin/drm agent devices
|
||||
./bin/drm agent enqueue --stream tg4-ioi --reason manual
|
||||
./bin/drm agent cancel --job 3
|
||||
./bin/streamd agent status
|
||||
./bin/streamd agent devices
|
||||
./bin/streamd agent enqueue --stream tg4-ioi --reason manual
|
||||
./bin/streamd agent cancel --job 3
|
||||
```
|
||||
|
||||
App modules are discovered under `modules/`. The agent drives whichever module a
|
||||
stream names and contains no provider logic.
|
||||
With `sync_modules: true` (default in the sample config), the agent **pulls**
|
||||
provider modules from the streamd Modules page into `<data_dir>/modules/`. You do
|
||||
not need a hand-maintained `modules/` tree on each agent host. The agent drives
|
||||
whichever module a stream names and contains no provider logic.
|
||||
|
||||
## Config
|
||||
|
||||
`agent.yaml` — `streamd_url`, **`api_key`** (preferred) or `token` (alias), or
|
||||
env `STREAMD_API_KEY` / `STREAMD_TOKEN`. Also: `poll_interval_sec`, `workers`,
|
||||
`max_attempts`, `capture_wait_sec`, `devices` (empty = any authorised device),
|
||||
`wvd`, `user_agent`, `agent_id`, `data_dir`.
|
||||
`wvd`, `user_agent`, `agent_id`, `data_dir`, `sync_modules`, `modules_dir`
|
||||
(default `<data_dir>/modules`), `modules_sync_interval_sec`, `modules_prune`.
|
||||
|
||||
Create the key in the streamd dashboard (role **operator**). The legacy shared
|
||||
`--token` / `STREAMD_TOKEN` still works but is meant for migration only.
|
||||
|
|
@ -59,10 +62,10 @@ Create the key in the streamd dashboard (role **operator**). The legacy shared
|
|||
## Build
|
||||
|
||||
```bash
|
||||
go -C apps/cli build -o ../../bin/drm .
|
||||
go -C apps/cli build -o ../../bin/streamd .
|
||||
|
||||
# cross-compile
|
||||
GOOS=darwin GOARCH=arm64 go -C apps/cli build -o ../../bin/drm .
|
||||
GOOS=darwin GOARCH=arm64 go -C apps/cli build -o ../../bin/streamd .
|
||||
```
|
||||
|
||||
**Full guide: [docs/streamd.md](../../docs/streamd.md)**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue