summary refs log tree commit diff
path: root/src/util/config/types/subconfigurations/limits/RateLimits.ts
blob: dfce9341fa3e6c3f6756357b662df31ec35f60a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { RouteRateLimit, RateLimitOptions } from ".";

export class RateLimits {
	enabled: boolean = false;
	ip: Omit<RateLimitOptions, "bot_count"> = {
		count: 500,
		window: 5,
	};
	global: RateLimitOptions = {
		count: 250,
		window: 5,
	};
	error: RateLimitOptions = {
		count: 10,
		window: 5,
	};
	routes: RouteRateLimit = new RouteRateLimit();
}