Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: dashboard not showing remote environment information
Kyle Mendell3a7b858a89de
diff --git a/backend/internal/api/environment_handler.go b/backend/internal/api/environment_handler.goindex 2f5e3b06d..5bb2f5b68 100644--- a/backend/internal/api/environment_handler.go+++ b/backend/internal/api/environment_handler.go@@ -1019,6 +1019,10 @@ func (h *EnvironmentHandler) GetStatsWS(c *gin.Context) {hdr.Set("Authorization", "Bearer "+cookieToken)}+ if h.cfg != nil && h.cfg.AgentMode && h.cfg.AgentToken != "" {+ hdr.Set("X-Arcane-Agent-Token", h.cfg.AgentToken)+ }+_ = wsutil.ProxyHTTP(c.Writer, c.Request, u.String(), hdr)return}diff --git a/backend/internal/bootstrap/router_bootstrap.go b/backend/internal/bootstrap/router_bootstrap.goindex c6ebdad94..6da028047 100644--- a/backend/internal/bootstrap/router_bootstrap.go+++ b/backend/internal/bootstrap/router_bootstrap.go@@ -27,12 +27,12 @@ func setupRouter(cfg *config.Config, appServices *Services) *gin.Engine {router.Use(gin.Recovery())loggerSkipPatterns := []string{- "GET /api/containers/*/stats/stream",- "GET /api/containers/*/logs/stream",- "GET /_app",+ "GET /api/*/*/stats/ws",+ "GET /api/system/stats/ws",+ "GET /api/*/*/logs/ws",+ "GET /_app/*","GET /img","GET /fonts",- "GET /api/system/stats","GET /api/health","HEAD /api/health",}@@ -66,6 +66,7 @@ func setupRouter(cfg *config.Config, appServices *Services) *gin.Engine {if cfg.AgentMode {api.NewHealthHandler(apiGroup)api.NewEnvironmentHandler(apiGroup, appServices.Environment, appServices.Container, appServices.Image, appServices.ImageUpdate, appServices.Updater, appServices.Network, appServices.Volume, appServices.Project, appServices.Settings, authMiddleware, cfg)+ api.NewSystemHandler(apiGroup, appServices.Docker, appServices.System, authMiddleware)return router}