use bucket rate limit for posts and chat messages

This commit is contained in:
Hazelnoot 2025-07-26 19:10:22 -04:00
parent ed68230811
commit 591c6d603f
4 changed files with 21 additions and 10 deletions

View file

@ -21,9 +21,11 @@ export const meta = {
kind: 'write:chat',
// Up to 10 message burst, then 2/second
limit: {
duration: ms('1hour'),
max: 500,
type: 'bucket',
size: 10,
dripRate: 500,
},
res: {

View file

@ -21,9 +21,11 @@ export const meta = {
kind: 'write:chat',
// Up to 10 message burst, then 2/second
limit: {
duration: ms('1hour'),
max: 500,
type: 'bucket',
size: 10,
dripRate: 500,
},
res: {