mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-18 22:40:07 +00:00
increase rate limit for /api/endpoint
based on real-world testing
This commit is contained in:
parent
2bcac80092
commit
6fa0f2230e
1 changed files with 6 additions and 3 deletions
|
@ -29,10 +29,13 @@ export const meta = {
|
|||
},
|
||||
},
|
||||
|
||||
// 5 calls per second
|
||||
// 1000 max @ 1/10ms drip = 10/sec average.
|
||||
// Large bucket is ok because this is a fairly lightweight endpoint.
|
||||
limit: {
|
||||
duration: 1000,
|
||||
max: 5,
|
||||
type: 'bucket',
|
||||
|
||||
size: 1000,
|
||||
dripRate: 10,
|
||||
},
|
||||
} as const;
|
||||
|
||||
|
|
Loading…
Reference in a new issue