[addon] updates to more strict rate limiting

This commit is contained in:
TheBeastLT
2020-12-21 11:17:46 +01:00
parent 3e96d7206d
commit 8702bce6b6

View File

@@ -9,8 +9,8 @@ const moch = require('./moch/moch');
const router = getRouter({ ...addonInterface, manifest: manifest() }); const router = getRouter({ ...addonInterface, manifest: manifest() });
const limiter = rateLimit({ const limiter = rateLimit({
windowMs: 10 * 1000, // 10 seconds windowMs: 60 * 60 * 1000, // 1 hours
max: 10, // limit each IP to 10 requests per windowMs max: 300, // limit each IP to 300 requests per windowMs
headers: false headers: false
}); });