From 952193857f8808492a84b8f1a43d35a35b7c549f Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 27 Sep 2023 18:16:52 +0000 Subject: [PATCH] change ratelimits --- server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index 49957b61..7c6fd3f4 100644 --- a/server.js +++ b/server.js @@ -65,8 +65,8 @@ const limiter = rateLimit({ - windowMs: 30 * 1000, // 30 Seconds - max: 870, // limit each IP to 870 requests per windowMs + windowMs:45 * 1000, // 30 Seconds + max: 886, // limit each IP to 870 requests per windowMs }); var app = modules.express(); @@ -90,7 +90,7 @@ // but may cause the check to be too sensitive. toobusy.interval(110); -toobusy.maxLag(2500); +toobusy.maxLag(3500); app.use(function(req, res, next) { if (toobusy()) {