From 8a556c25a023518509d788ec9ffdddd9849015d2 Mon Sep 17 00:00:00 2001 From: Reviewer Date: Sun, 14 Jun 2026 09:48:44 +0200 Subject: [PATCH] Add local liveness health endpoint --- backend/Controllers/HealthController.cs | 6 ++++++ compose.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/Controllers/HealthController.cs b/backend/Controllers/HealthController.cs index d239ded..2575a06 100644 --- a/backend/Controllers/HealthController.cs +++ b/backend/Controllers/HealthController.cs @@ -7,6 +7,12 @@ namespace Nexus.Api.Controllers; [ApiController] public class HealthController(IAgentRuntime runtime, HealthCheckService healthChecks) : ControllerBase { + [HttpGet("/health/live")] + public IResult Live() + { + return Results.Ok(new { status = "Healthy", timestamp = DateTimeOffset.UtcNow }); + } + [HttpGet("/health")] public async Task Get(CancellationToken ct) { diff --git a/compose.yaml b/compose.yaml index b9762db..60768f8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -53,7 +53,7 @@ services: postgres: condition: service_healthy healthcheck: - test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1"] + test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/health/live || exit 1"] interval: 30s timeout: 10s retries: 3