use bucket rate limit for posts and chat messages
This commit is contained in:
parent
ed68230811
commit
591c6d603f
4 changed files with 21 additions and 10 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue