mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-04-20 18:22:03 +00:00
[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 limiter = rateLimit({
|
||||
windowMs: 10 * 1000, // 10 seconds
|
||||
max: 10, // limit each IP to 10 requests per windowMs
|
||||
windowMs: 60 * 60 * 1000, // 1 hours
|
||||
max: 300, // limit each IP to 300 requests per windowMs
|
||||
headers: false
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue