mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 09:49:32 +02:00
Increase rate limit
This commit is contained in:
parent
03dfc9ad33
commit
067a53ee29
1 changed files with 3 additions and 3 deletions
|
@ -19,19 +19,19 @@ import { RateLimiterAbstract, RateLimiterMemory } from 'rate-limiter-flexible'
|
|||
|
||||
const globalMailSendLimitMinute: RateLimiterAbstract = new RateLimiterMemory({
|
||||
keyPrefix: 'timelimit:sendmail-auth:global:minute',
|
||||
points: 5,
|
||||
points: 100,
|
||||
duration: 60 // 1 minute
|
||||
})
|
||||
|
||||
const globalMailSendLimitHour: RateLimiterAbstract = new RateLimiterMemory({
|
||||
keyPrefix: 'timelimit:sendmail-auth:global:hour',
|
||||
points: 30,
|
||||
points: 500,
|
||||
duration: 60 * 60 // 1 hour
|
||||
})
|
||||
|
||||
const gloablMailSendLimitDay: RateLimiterAbstract = new RateLimiterMemory({
|
||||
keyPrefix: 'timelimit:sendmail-auth:global:day',
|
||||
points: 100,
|
||||
points: 1000,
|
||||
duration: 60 * 60 * 24 // 1 day
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue