fix(ratelimit): reduce /graphql limit based on incident (#1505)

This commit is contained in:
Iain Sproat
2023-04-07 12:49:45 +01:00
committed by GitHub
parent cff0fa8e31
commit 2a35fe6178
@@ -170,11 +170,11 @@ export const LIMITS: RateLimiterOptions = {
},
'POST /graphql': {
regularOptions: {
limitCount: getIntFromEnv('RATELIMIT_POST_GRAPHQL', '50'),
limitCount: getIntFromEnv('RATELIMIT_POST_GRAPHQL', '10'),
duration: 1 * TIME.second
},
burstOptions: {
limitCount: getIntFromEnv('RATELIMIT_BURST_POST_GRAPHQL', '200'),
limitCount: getIntFromEnv('RATELIMIT_BURST_POST_GRAPHQL', '20'),
duration: 1 * TIME.minute
}
},