Increase rate limit

This commit is contained in:
Jonas L 2019-06-17 00:00:00 +00:00
parent 03dfc9ad33
commit 067a53ee29

View file

@ -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
})