From c0d4ec680de18daa83474c15155658fc5c6ee3a4 Mon Sep 17 00:00:00 2001 From: hippoz Date: Fri, 20 Nov 2020 18:26:56 +0200 Subject: [PATCH] make rate limit more permissive --- api/v1/content.js | 2 +- api/v1/users.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/content.js b/api/v1/content.js index f4326a5..521d3d1 100755 --- a/api/v1/content.js +++ b/api/v1/content.js @@ -17,7 +17,7 @@ const rateLimit = require("express-rate-limit"); const createLimiter = rateLimit({ windowMs: 2 * 60 * 1000, - max: 3, + max: 10, }); app.post('/category/create', [ diff --git a/api/v1/users.js b/api/v1/users.js index 1589781..488b5db 100755 --- a/api/v1/users.js +++ b/api/v1/users.js @@ -18,7 +18,7 @@ const rateLimit = require("express-rate-limit"); const createAccountLimiter = rateLimit({ windowMs: 60 * 60 * 1000, // 1 hour window - max: 5, // start blocking after 5 requests + max: 10, // start blocking after 5 requests message: "You are being rate limited" });