功能:扩展云管资源运维、账号授权及监控管理

This commit is contained in:
songyiming committed 2026-11-10 17:52:52 +08:00
1 parent eef485306f
commit 6134d49c16
87 files changed
+29498 -126

No files matched your search

+5 -3
View File
@@ -39,10 +39,12 @@ func main() {
}
}
s := server.New(cfg, db, pve)
go s.RunWorker(ctx)
if pve != nil {
go s.RunSync(ctx)
if err = s.RefreshCompute(startup); err != nil {
log.Fatal("saved compute configuration unavailable")
}
go s.RunWorker(ctx)
go s.RunObservability(ctx)
go s.RunSync(ctx)
httpServer := &http.Server{Addr: cfg.Address, Handler: s.Router, ReadHeaderTimeout: 5 * time.Second, ReadTimeout: 20 * time.Second, WriteTimeout: 30 * time.Second, IdleTimeout: 60 * time.Second}
go func() {
log.Printf("VDI API listening on %s (mode=%s)", cfg.Address, cfg.Mode)