feat: forward optional FastAPI control token
This commit is contained in:
1 parent
4b9c2da9f7
commit
a88bfad1d4
5 files changed
+70
-23
No files matched your search
+1
-1
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user