feat: forward optional FastAPI control token

This commit is contained in:
Noel Sabia committed 2026-11-14 04:47:21 +01:00
1 parent 4b9c2da9f7
commit a88bfad1d4
5 files changed
+70 -23

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ func main() {
server := &http.Server{
Addr: cfg.Addr,
Handler: api.New(cfg, st, ml.New(cfg.FastAPIURL, cfg.MLTimeout), hub).Handler(),
Handler: api.New(cfg, st, ml.NewWithToken(cfg.FastAPIURL, cfg.MLTimeout, cfg.ControlToken), hub).Handler(),
ReadHeaderTimeout: 5 * time.Second,
IdleTimeout: 120 * time.Second,
}