increase rate limit to 100 per minute for each IP (#435)

This commit is contained in:
ZaydSkaff
2025-06-25 13:50:38 +03:00
committed by GitHub
parent 4d60c1ed54
commit 68692b7c8b

View File

@ -50,7 +50,7 @@ import { SchedulerModule } from './scheduler/scheduler.module';
load: config,
}),
ThrottlerModule.forRoot({
throttlers: [{ ttl: 60000, limit: 30 }],
throttlers: [{ ttl: 60000, limit: 100 }],
generateKey: (context) => {
const req = context.switchToHttp().getRequest();
console.log('Real IP:', req.headers['x-forwarded-for']);