mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-20 23:40:10 +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: {
|
limit: {
|
||||||
duration: 1000,
|
type: 'bucket',
|
||||||
max: 5,
|
|
||||||
|
size: 1000,
|
||||||
|
dripRate: 10,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue