1
0
forked from wrenn/wrenn

Add unauthenticated /health endpoint to control plane

Returns JSON with status and build version for monitoring and
load balancer health checks.
This commit is contained in:
2026-04-16 16:13:42 +06:00
parent bba5f80294
commit e6e3975426
2 changed files with 10 additions and 2 deletions

View File

@ -175,7 +175,7 @@ func Run(opts ...Option) {
}
// API server.
srv := api.New(queries, hostPool, hostScheduler, pool, rdb, []byte(cfg.JWTSecret), oauthRegistry, cfg.OAuthRedirectURL, ca, al, channelSvc, mailer, o.extensions, sctx)
srv := api.New(queries, hostPool, hostScheduler, pool, rdb, []byte(cfg.JWTSecret), oauthRegistry, cfg.OAuthRedirectURL, ca, al, channelSvc, mailer, o.extensions, sctx, o.version)
// Start template build workers (2 concurrent).
stopBuildWorkers := srv.BuildSvc.StartWorkers(ctx, 2)