mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-03-13 18:47:53 +01: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…
Add table
Reference in a new issue