make rate limit more permissive

This commit is contained in:
hippoz 2020-11-20 18:26:56 +02:00
parent 1e935b03df
commit c0d4ec680d
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ const rateLimit = require("express-rate-limit");
const createLimiter = rateLimit({ const createLimiter = rateLimit({
windowMs: 2 * 60 * 1000, windowMs: 2 * 60 * 1000,
max: 3, max: 10,
}); });
app.post('/category/create', [ app.post('/category/create', [

View file

@ -18,7 +18,7 @@ const rateLimit = require("express-rate-limit");
const createAccountLimiter = rateLimit({ const createAccountLimiter = rateLimit({
windowMs: 60 * 60 * 1000, // 1 hour window 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" message: "You are being rate limited"
}); });