Merge pull request 'Adjust rate limit for proxy endpoint' (#39) from 38-hotfix-adjust-proxy-rate-limit into dev

Reviewed-on: https://codeberg.org/yeentown/barkey/pulls/39
This commit is contained in:
zima 2024-12-26 02:11:48 +00:00
commit 60a6b4e16e

View file

@ -646,8 +646,9 @@ export class FileServerService {
key: group,
// Maximum of 3600 requests per hour, which is an average of 1 per second.
max: 3600,
duration: 1000 * 60 * 60,
// TODO: Revert to above after caching is fixed on cdn
max: 10000,
duration: 1000 * 60 * 10,
};
return await this.checkLimit(reply, actor, limit);