From 3796095cbb42f8b234bc4ce8410576c9c8e3eaf4 Mon Sep 17 00:00:00 2001 From: ashley Date: Sat, 19 Oct 2024 19:13:47 +0000 Subject: [PATCH] make ratelimit more --- server.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index 6ece9f94..743e86fa 100644 --- a/server.js +++ b/server.js @@ -75,10 +75,10 @@ const sha384 = modules.hash; const rateLimit = require("express-rate-limit"); - const limiter = rateLimit({ - windowMs: 45 * 1000, // 45 Seconds - max: 886, // limit each IP to 866 requests per windowMs - }); +const limiter = rateLimit({ + windowMs: 30 * 1000, // 30 second window + max: 200, // limit each IP to 200 requests per 30 seconds +}); var app = modules.express(); app.use(limiter);