bump ratelimit for pixel whois from 50 to 150 per 15 minutes (related #101)
This commit is contained in:
parent
d16de6f52e
commit
c012664613
|
@ -4,6 +4,8 @@ import { Redis } from "./redis";
|
||||||
|
|
||||||
const REDIS_PREFIX = process.env.REDIS_RATELIMIT_PREFIX || "canavs_ratelimit:";
|
const REDIS_PREFIX = process.env.REDIS_RATELIMIT_PREFIX || "canavs_ratelimit:";
|
||||||
|
|
||||||
|
// TODO: Move these static settings to dynamic (related #101)
|
||||||
|
|
||||||
export const RateLimiter = {
|
export const RateLimiter = {
|
||||||
ADMIN: rateLimit({
|
ADMIN: rateLimit({
|
||||||
windowMs: 15 * 60 * 1000,
|
windowMs: 15 * 60 * 1000,
|
||||||
|
@ -24,7 +26,7 @@ export const RateLimiter = {
|
||||||
}),
|
}),
|
||||||
HIGH: rateLimit({
|
HIGH: rateLimit({
|
||||||
windowMs: 15 * 60 * 1000,
|
windowMs: 15 * 60 * 1000,
|
||||||
max: 50,
|
max: 150,
|
||||||
standardHeaders: true,
|
standardHeaders: true,
|
||||||
legacyHeaders: false,
|
legacyHeaders: false,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue