Merge pull request #465 from omnivore-app/fix/up-rate-limit

Increase the rate limit
This commit is contained in:
Jackson Harper 2022-04-21 15:10:26 -07:00 committed by GitHub
commit 9c72f99520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ export const createApp = (): {
if (!env.dev.isLocal) {
const apiLimiter = rateLimit({
windowMs: 60 * 1000, // 1 minute
max: 10, // Limit each IP to 10 requests per `window` (here, per minute)
max: 50, // Limit each IP to 10 requests per `window` (here, per minute)
standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
legacyHeaders: false, // Disable the `X-RateLimit-*` headers
})