mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
15 lines
399 B
TypeScript
15 lines
399 B
TypeScript
import { registerAs } from '@nestjs/config';
|
|
|
|
export default registerAs('throttle', () => ({
|
|
global: {
|
|
ttl: parseInt(process.env.THROTTLE_GLOBAL_TTL ?? '60000', 10),
|
|
limit: parseInt(process.env.THROTTLE_GLOBAL_LIMIT ?? '100', 10),
|
|
},
|
|
auth: {
|
|
ttl: parseInt(process.env.THROTTLE_AUTH_TTL ?? '60000', 10),
|
|
limit: parseInt(process.env.THROTTLE_AUTH_LIMIT ?? '10', 10),
|
|
},
|
|
}));
|
|
|
|
|