1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 04:04:16 +00:00

increase rate limit for /api/endpoint based on real-world testing

This commit is contained in:
Hazelnoot
2024-12-08 11:56:48 -05:00
parent 2bcac80092
commit 6fa0f2230e

View File

@@ -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;