mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] updates to more strict rate limiting
This commit is contained in:
@@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user