diff options
Diffstat (limited to 'server/middlewares/rate-limiter.ts')
-rw-r--r-- | server/middlewares/rate-limiter.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/middlewares/rate-limiter.ts b/server/middlewares/rate-limiter.ts index 8257965dd..143d43632 100644 --- a/server/middlewares/rate-limiter.ts +++ b/server/middlewares/rate-limiter.ts | |||
@@ -45,6 +45,11 @@ export const apiRateLimiter = buildRateLimiter({ | |||
45 | max: CONFIG.RATES_LIMIT.API.MAX | 45 | max: CONFIG.RATES_LIMIT.API.MAX |
46 | }) | 46 | }) |
47 | 47 | ||
48 | export const activityPubRateLimiter = buildRateLimiter({ | ||
49 | windowMs: CONFIG.RATES_LIMIT.ACTIVITY_PUB.WINDOW_MS, | ||
50 | max: CONFIG.RATES_LIMIT.ACTIVITY_PUB.MAX | ||
51 | }) | ||
52 | |||
48 | // --------------------------------------------------------------------------- | 53 | // --------------------------------------------------------------------------- |
49 | // Private | 54 | // Private |
50 | // --------------------------------------------------------------------------- | 55 | // --------------------------------------------------------------------------- |