bump ratelimit for pixel whois from 50 to 150 per 15 minutes (related #101)

This commit is contained in:
Grant 2024-07-15 12:16:16 -06:00
parent d16de6f52e
commit c012664613
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@ import { Redis } from "./redis";
const REDIS_PREFIX = process.env.REDIS_RATELIMIT_PREFIX || "canavs_ratelimit:";
// TODO: Move these static settings to dynamic (related #101)
export const RateLimiter = {
ADMIN: rateLimit({
windowMs: 15 * 60 * 1000,
@ -24,7 +26,7 @@ export const RateLimiter = {
}),
HIGH: rateLimit({
windowMs: 15 * 60 * 1000,
max: 50,
max: 150,
standardHeaders: true,
legacyHeaders: false,