streamd v0.2.2: session uptimes, egress DNS, Support, agent/Widevine
All checks were successful
release / build-and-upload (push) Successful in 7m2s
All checks were successful
release / build-and-upload (push) Successful in 7m2s
Dashboard Live uptimes + Recent runs from stream_sessions; overview.recent_sessions. WireGuard netns resolv.conf + missing-deps WARN. Support donations card. Agent start/stop/update, job_backoff default off, wvkey ensure/venv, phonecap retries, modhost YAML enrich, DRM SetCredentials requires keys.
This commit is contained in:
parent
3ae1dd58b3
commit
a091922efa
34 changed files with 2391 additions and 154 deletions
50
docs/releases/v0.2.2.md
Normal file
50
docs/releases/v0.2.2.md
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Streamd v0.2.2
|
||||
|
||||
Host release after v0.2.1. Retargets the rolling **`stable`** channel.
|
||||
|
||||
## Highlights
|
||||
|
||||
### Dashboard: live uptimes + run history
|
||||
- **Live uptimes** card below Needs attention — per-stream health and ticking uptime
|
||||
- **Recent runs** — durable `stream_sessions` rows (start → stop/crash) with duration and end reason
|
||||
- `GET /api/overview` includes `recent_sessions` (newest closed runs first)
|
||||
|
||||
### Support / donations
|
||||
- Dashboard **Support the project** card with copyable ETH / LTC / BTC addresses (same as README)
|
||||
|
||||
### WireGuard egress DNS
|
||||
- On Linux Up, write `/etc/netns/streamd-<name>/resolv.conf` with public resolvers so SOCKS hostname lookups work when the host uses systemd-resolved (`127.0.0.53`)
|
||||
- Startup WARN if `ip`, `wg`, or `microsocks`/`gost` are missing from `PATH`
|
||||
- Docs updated in `docs/streamd-server-setup.md` §7 and `docs/streamd.md`
|
||||
|
||||
### Agent / Widevine / modules (included from prior work)
|
||||
- Agent lifecycle: `streamd agent start|stop|restart|status|update`
|
||||
- `job_backoff` defaults off (immediate retries)
|
||||
- Widevine auto-venv + embedded `apps/wvkey`; phonecap 90s×3 license retries
|
||||
- Module panel YAML enrich / empty-package guards; DRM credential posts require keys
|
||||
|
||||
## Known limits
|
||||
|
||||
- **BBC Live from datacenter IPs** can still get CDN **403** after SOCKS/DNS is healthy. Needs UK residential egress — out of scope for this release.
|
||||
|
||||
## Assets
|
||||
|
||||
| Asset | Platform |
|
||||
|---|---|
|
||||
| `streamd-windows-amd64.exe` | Windows x86_64 |
|
||||
| `streamd-windows-arm64.exe` | Windows ARM64 |
|
||||
| `streamd-linux-amd64` | Linux x86_64 |
|
||||
| `streamd-linux-arm64` | Linux ARM64 |
|
||||
| `streamd-darwin-amd64` | macOS Intel |
|
||||
| `streamd-darwin-arm64` | macOS Apple Silicon |
|
||||
| `proxy-android-arm64` | On-device MITM |
|
||||
| `SHA256SUMS.txt` | Checksums |
|
||||
|
||||
Built with `CGO_ENABLED=0`. Provider zips remain on separate **`modules-v*`** releases.
|
||||
|
||||
```bash
|
||||
curl -fL -o streamd \
|
||||
"https://git.nulldrm.com/nulldrm/Null-DRM-Official/releases/download/stable/streamd-linux-amd64"
|
||||
chmod +x streamd
|
||||
./streamd serve update # or: stop → replace → start
|
||||
```
|
||||
|
|
@ -496,6 +496,15 @@ sudo apt-get install -y wireguard wireguard-tools iproute2 microsocks
|
|||
`CAP_SYS_ADMIN`, or run as root). A full-tunnel client conf (`AllowedIPs = 0.0.0.0/0`)
|
||||
is fine — traffic is isolated inside `streamd-<name>` netns.
|
||||
|
||||
On **Up**, streamd also writes `/etc/netns/streamd-<name>/resolv.conf` with public
|
||||
resolvers (`1.1.1.1`, `1.0.0.1`, `8.8.8.8`). Without that, SOCKS hostname lookups
|
||||
fail when the host uses systemd-resolved’s `127.0.0.53` stub (unreachable inside
|
||||
the netns). Writing under `/etc/netns/` needs the same privileges as `ip netns`.
|
||||
Teardown removes that directory with the namespace.
|
||||
|
||||
If `ip`, `wg`, or `microsocks`/`gost` are missing from `PATH`, `streamd serve`
|
||||
logs a WARN at startup so WireGuard profiles fail clearly instead of silently.
|
||||
|
||||
### Dashboard
|
||||
|
||||
1. **Settings → Egress tunnels → Add profile**
|
||||
|
|
|
|||
|
|
@ -45,8 +45,14 @@ warning.
|
|||
- 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-<name>` netns so SSH/UI keep the host route. On Linux Up, streamd
|
||||
writes `/etc/netns/streamd-<name>/resolv.conf` (public DNS) so SOCKS hostname
|
||||
lookups work when the host uses `127.0.0.53`. See
|
||||
[streamd-server-setup.md](streamd-server-setup.md) §7.
|
||||
- The dashboard **Live uptimes** and **Recent runs** cards use
|
||||
`stream_runtime.uptime_s` plus durable `stream_sessions` rows (opened when
|
||||
NRE starts, closed on stop / NRE exit). `GET /api/overview` includes
|
||||
`recent_sessions`.
|
||||
- **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
|
||||
|
|
@ -57,6 +63,7 @@ warning.
|
|||
| Route | Purpose |
|
||||
|---|---|
|
||||
| `GET /api/health` | liveness + uptime + `deps` paths |
|
||||
| `GET /api/overview` | dashboard totals, upcoming, recent events + sessions |
|
||||
| `GET /api/apps` | modules under the panel store (`--data/modules`), channels, rewriters |
|
||||
| `GET /api/modules` | list panel modules with yaml/package hashes + arches |
|
||||
| `GET /api/modules/:name` | metadata; `?include=yaml` returns YAML (operator+) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue