mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-06 04:01:57 +02:00
21 lines
506 B
TypeScript
21 lines
506 B
TypeScript
export const rateLimitConfig = {
|
|
'enable': true, // you can set it to 'false'
|
|
/**
|
|
* How much rate limit count per x second(s)
|
|
* -is allowed? Default: 60 requests
|
|
*/
|
|
'maxRatelimitPerXSeconds': 60,
|
|
/**
|
|
* Every x second(s), the ratelimit data will removed.
|
|
* So, their ratelimit data will removed.
|
|
* PS: Data stored on redis.
|
|
*/
|
|
'ratelimitTime': 60,
|
|
};
|
|
|
|
/**
|
|
* Provider response data will stored on redis.
|
|
* Default: 1 hour
|
|
*/
|
|
export const providerCache = 3600;
|