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
|
|
@ -15,17 +15,19 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"drmdecryption/apps/streamd/internal/api"
|
||||
"drmdecryption/apps/streamd/internal/auth"
|
||||
"drmdecryption/apps/streamd/internal/db"
|
||||
"drmdecryption/apps/streamd/internal/deps"
|
||||
"drmdecryption/apps/streamd/internal/hlsgate"
|
||||
"drmdecryption/apps/streamd/internal/httpx"
|
||||
"drmdecryption/apps/streamd/internal/scheduler"
|
||||
"drmdecryption/apps/streamd/internal/supervisor"
|
||||
"drmdecryption/apps/streamd/internal/tsfanout"
|
||||
"drmdecryption/apps/streamd/internal/ui"
|
||||
"drmdecryption/apps/streamd/internal/ws"
|
||||
"streamd/apps/streamd/internal/api"
|
||||
"streamd/apps/streamd/internal/auth"
|
||||
"streamd/apps/streamd/internal/db"
|
||||
"streamd/apps/streamd/internal/deps"
|
||||
"streamd/apps/streamd/internal/hlsgate"
|
||||
"streamd/apps/streamd/internal/httpx"
|
||||
"streamd/apps/streamd/internal/modstore"
|
||||
"streamd/apps/streamd/internal/scheduler"
|
||||
"streamd/apps/streamd/internal/supervisor"
|
||||
"streamd/apps/streamd/internal/tsfanout"
|
||||
"streamd/apps/streamd/internal/ui"
|
||||
"streamd/apps/streamd/internal/ws"
|
||||
"streamd/modhost"
|
||||
)
|
||||
|
||||
// Run dispatches a streamd subcommand. args[0] is the subcommand name.
|
||||
|
|
@ -142,7 +144,7 @@ func serveCmd(args []string) {
|
|||
}
|
||||
origins := splitList(*allowedOrigins)
|
||||
|
||||
for _, sub := range []string{"www", "work", "logs"} {
|
||||
for _, sub := range []string{"www", "work", "logs", "modules"} {
|
||||
if err := os.MkdirAll(filepath.Join(dataDir, sub), 0o755); err != nil {
|
||||
lg.Error("create data dir", "err", err)
|
||||
os.Exit(1)
|
||||
|
|
@ -205,20 +207,32 @@ func serveCmd(args []string) {
|
|||
|
||||
sched := scheduler.New(store, sup, hub, lg, *preroll)
|
||||
|
||||
modulesRoot := filepath.Join(dataDir, "modules")
|
||||
modStore := modstore.New(modulesRoot)
|
||||
// Panel-owned modules are the source of truth for /api/apps and describe.
|
||||
if err := modhost.SetModulesDir(modulesRoot); err != nil {
|
||||
lg.Error("set modules dir", "err", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
lg.Info("modules store", "dir", modulesRoot)
|
||||
|
||||
apiH := &api.Handler{
|
||||
Store: store,
|
||||
Auth: authStore,
|
||||
Trust: trust,
|
||||
Supervisor: sup,
|
||||
Capture: hub,
|
||||
StartedAt: time.Now(),
|
||||
Deps: depStatus,
|
||||
WWWRoot: filepath.Join(dataDir, "www"),
|
||||
LogRoot: filepath.Join(dataDir, "logs"),
|
||||
Notifier: hub,
|
||||
Viewers: gate,
|
||||
Scheduler: sched,
|
||||
Log: lg,
|
||||
Store: store,
|
||||
Auth: authStore,
|
||||
Trust: trust,
|
||||
Supervisor: sup,
|
||||
Capture: hub,
|
||||
StartedAt: time.Now(),
|
||||
Deps: depStatus,
|
||||
WWWRoot: filepath.Join(dataDir, "www"),
|
||||
LogRoot: filepath.Join(dataDir, "logs"),
|
||||
DataDir: dataDir,
|
||||
Modules: modStore,
|
||||
ModulesNotify: hub,
|
||||
Notifier: hub,
|
||||
Viewers: gate,
|
||||
Scheduler: sched,
|
||||
Log: lg,
|
||||
}
|
||||
|
||||
mux := http.NewServeMux()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue