[addon] updates to more strict rate limiting
This commit is contained in:
parent
3e96d7206d
commit
8702bce6b6
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue