mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 07:07:21 +00:00
Compare commits
1 Commits
5cf45c30f4
...
refactor/i
Author | SHA1 | Date | |
---|---|---|---|
692d5c2ce3 |
@ -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;
|
||||
|
Reference in New Issue
Block a user