Skip to content

Conversation

@Ridho894
Copy link
Owner

@Ridho894 Ridho894 commented Jun 4, 2025

Description

This PR implements global rate limiting using @nestjs/throttler and adds a health check endpoint powered by @nestjs/terminus.
Rate limits are applied selectively to critical routes (e.g., authentication), and configurations (TTL, limit) are loaded via environment variables.
The /health endpoint checks basic application availability, including HTTP response and database connectivity.

Related Issue

N/A

Type of Change

  • ✨ New feature

Checklist

  • My code compiles without errors
  • I have added necessary environment variables and documented them
  • I have tested the new /health route manually
  • Rate limiter configuration is loaded from environment variables
  • Critical routes are protected with rate limiting
  • I have reviewed the code to ensure consistency and clarity

@Ridho894 Ridho894 added the enhancement New feature or request label Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants