mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-05-17 19:55:50 +00:00
Increase number of allowed requests
This commit is contained in:
parent
949004b0f3
commit
08033464c6
@ -36,7 +36,7 @@ const localRatelimit = {
|
|||||||
const ratelimit = process.env.NODE_ENV === 'production'
|
const ratelimit = process.env.NODE_ENV === 'production'
|
||||||
? new Ratelimit({
|
? new Ratelimit({
|
||||||
redis: kv,
|
redis: kv,
|
||||||
limiter: Ratelimit.slidingWindow(10, '10 s'),
|
limiter: Ratelimit.slidingWindow(20, '10 s'),
|
||||||
analytics: true,
|
analytics: true,
|
||||||
timeout: 1000,
|
timeout: 1000,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user