Fixed some ratelimits that were hardcoded and ammended docker compose to take into consideration rate limits

This commit is contained in:
Muhammad Ibrahim
2025-10-22 15:22:14 +01:00
parent a8bd09be89
commit de449c547f
3 changed files with 17 additions and 3 deletions

View File

@@ -50,6 +50,13 @@ services:
SERVER_HOST: localhost
SERVER_PORT: 3000
CORS_ORIGIN: http://localhost:3000
# Rate Limiting (times in milliseconds)
RATE_LIMIT_WINDOW_MS: 900000
RATE_LIMIT_MAX: 5000
AUTH_RATE_LIMIT_WINDOW_MS: 600000
AUTH_RATE_LIMIT_MAX: 500
AGENT_RATE_LIMIT_WINDOW_MS: 60000
AGENT_RATE_LIMIT_MAX: 1000
# Redis Configuration
REDIS_HOST: redis
REDIS_PORT: 6379