Skip to content

Terminus#863

Merged
yusuftomilola merged 3 commits into
DistinctCodes:mainfrom
Nanafancy:Terminus
Jun 1, 2026
Merged

Terminus#863
yusuftomilola merged 3 commits into
DistinctCodes:mainfrom
Nanafancy:Terminus

Conversation

@Nanafancy
Copy link
Copy Markdown
Contributor

[BE-30] Implement health check endpoints using @nestjs/terminus in opsce module

Problem
@nestjs/terminus is installed but never used. There is no way to verify the application's dependencies (database, Redis) are healthy, making deployment health checks and monitoring impossible.

Proposed Solution
Create backend/src/opsce/health/health.controller.ts using TerminusModule. Add indicators for PostgreSQL and Redis connectivity.

Acceptance Criteria
GET /api/health returns 200 OK with service statuses when all checks pass
Returns 503 Service Unavailable if any check fails
Checks PostgreSQL connectivity via TypeOrmHealthIndicator
Checks Redis connectivity via MicroserviceHealthIndicator or a custom indicator
Checks disk storage with a 90% threshold via DiskHealthIndicator
Endpoint is excluded from JWT auth (publicly accessible for load balancers)
closes #755

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@Nanafancy is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Nanafancy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Collaborator

@yusuftomilola yusuftomilola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution

@yusuftomilola yusuftomilola merged commit 118d676 into DistinctCodes:main Jun 1, 2026
1 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BE-30] Implement health check endpoints using @nestjs/terminus in opsce module

2 participants