|
@@ -27,7 +27,7 @@ const validator = {
|
|
|
const apiLimiter = rateLimit({
|
|
const apiLimiter = rateLimit({
|
|
|
windowMs: 15 * 60 * 1000, // 15 minutes
|
|
windowMs: 15 * 60 * 1000, // 15 minutes
|
|
|
// todo restore 100000 -> 30
|
|
// todo restore 100000 -> 30
|
|
|
- max: 100000, // limit each IP to 30 requests per windowMs
|
|
|
|
|
|
|
+ max: 30, // limit each IP to 30 requests per windowMs
|
|
|
message:
|
|
message:
|
|
|
'Too many requests sent from this IP, please try again after 15 minutes.',
|
|
'Too many requests sent from this IP, please try again after 15 minutes.',
|
|
|
});
|
|
});
|