diff options
| author | dakkar <dakkar@thenautilus.net> | 2024-12-09 09:43:55 +0000 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2024-12-09 09:43:55 +0000 |
| commit | 1837ccc618859e425766a66ff597b9f11b3e4e49 (patch) | |
| tree | 7dc17bd0205e53c180bb5ff912fe3a491c8a2acd /packages/backend/src/server/api/endpoints | |
| parent | fix a bunch of CSS variables (diff) | |
| parent | merge: Implement new SkRateLimiterServer with Leaky Bucket rate limits (resol... (diff) | |
| download | sharkey-1837ccc618859e425766a66ff597b9f11b3e4e49.tar.gz sharkey-1837ccc618859e425766a66ff597b9f11b3e4e49.tar.bz2 sharkey-1837ccc618859e425766a66ff597b9f11b3e4e49.zip | |
Merge branch 'develop' into feature/2024.10
Diffstat (limited to 'packages/backend/src/server/api/endpoints')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/endpoint.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/backend/src/server/api/endpoints/endpoint.ts b/packages/backend/src/server/api/endpoints/endpoint.ts index 7629cd7a67..a1dbb26431 100644 --- a/packages/backend/src/server/api/endpoints/endpoint.ts +++ b/packages/backend/src/server/api/endpoints/endpoint.ts @@ -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; |