mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Fix: Correct windowMs value in rate limit configuration to 15 minutes
This commit is contained in:
@@ -3,7 +3,7 @@ const RateLimit = require("express-rate-limit");
|
|||||||
|
|
||||||
/* Rate Limite */
|
/* Rate Limite */
|
||||||
const rateLimite = RateLimit({
|
const rateLimite = RateLimit({
|
||||||
windowMs: 15 * 60, // 15 ms
|
windowMs: 15 * 60 * 1000, // 15 minutes
|
||||||
max: 5, // limit each IP to 100 requests per windowMs on the root path
|
max: 5, // limit each IP to 100 requests per windowMs on the root path
|
||||||
message: "Too many requests, please try again later.",
|
message: "Too many requests, please try again later.",
|
||||||
statusCode: 429, // HTTP status code for "Too Many Requests"
|
statusCode: 429, // HTTP status code for "Too Many Requests"
|
||||||
|
|||||||
Reference in New Issue
Block a user