Set max to 10/minute for unauthenticated requests

This commit is contained in:
Jackson Harper 2023-05-12 17:11:20 +08:00
parent 8d9f54c62c
commit c49ca0149f

View file

@ -107,7 +107,7 @@ export const createApp = (): {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
req.header('authorization') ?? req.cookies['auth']
)
return !!token ? 50 : 5
return !!token ? 50 : 10
},
standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
legacyHeaders: false, // Disable the `X-RateLimit-*` headers