mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
improvements: address feedback
This commit is contained in:
@@ -117,8 +117,8 @@ export const requestAccessLimit: RateLimitOptions = {
|
|||||||
export const smtpRateLimit = ({
|
export const smtpRateLimit = ({
|
||||||
keyGenerator = (req) => req.realIp
|
keyGenerator = (req) => req.realIp
|
||||||
}: Pick<RateLimitOptions, "keyGenerator"> = {}): RateLimitOptions => ({
|
}: Pick<RateLimitOptions, "keyGenerator"> = {}): RateLimitOptions => ({
|
||||||
timeWindow: 20 * 1000,
|
timeWindow: 40 * 1000,
|
||||||
hook: "preValidation",
|
hook: "preValidation",
|
||||||
max: 1,
|
max: 2,
|
||||||
keyGenerator
|
keyGenerator
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user