diff --git a/config/moda/configuration/default/env.yaml b/config/moda/configuration/default/env.yaml index 096f675f61..77efd6e666 100644 --- a/config/moda/configuration/default/env.yaml +++ b/config/moda/configuration/default/env.yaml @@ -4,6 +4,6 @@ data: NODE_OPTIONS: '--max-old-space-size=4096' PORT: '4000' ENABLED_LANGUAGES: 'en,es,ja,pt,zh,ru,fr,ko,de' - RATE_LIMIT_MAX: '21' + RATE_LIMIT_MAX: '150' # Moda uses a non-default port for sending datadog metrics DD_DOGSTATSD_PORT: '28125' diff --git a/src/shielding/middleware/rate-limit.ts b/src/shielding/middleware/rate-limit.ts index 74302e8ab5..e22f8a0f44 100644 --- a/src/shielding/middleware/rate-limit.ts +++ b/src/shielding/middleware/rate-limit.ts @@ -14,8 +14,6 @@ if (isNaN(MAX)) { } // We apply this rate limiter to _all_ routes in src/shielding/index.ts except for `/api/*` routes -// `/api/*` routes are rate limited on a more specific basis in frame/api/index.ts -// When creating a limiter for `/api/*` routes, we need to pass `true` as the second argument export function createRateLimiter(max = MAX, isAPILimiter = false) { return rateLimit({ // 1 minute