Compare commits

...

1 Commits

Author SHA1 Message Date
692d5c2ce3 increase rate limit to 100 per minute for each IP 2025-06-25 13:47:42 +03:00

View File

@ -47,7 +47,7 @@ import { WeatherModule } from './weather/weather.module';
load: config,
}),
ThrottlerModule.forRoot({
throttlers: [{ ttl: 60000, limit: 30 }],
throttlers: [{ ttl: 60000, limit: 100 }],
generateKey: (context) => {
const req = context.switchToHttp().getRequest();
return req.headers['x-forwarded-for'] || req.ip;