aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r--server/initializers/config.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index bb278ba43..eefb45fb9 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -72,6 +72,14 @@ const CONFIG = {
72 PORT: config.get<number>('webserver.port') 72 PORT: config.get<number>('webserver.port')
73 }, 73 },
74 RATES_LIMIT: { 74 RATES_LIMIT: {
75 API: {
76 WINDOW_MS: parseDurationToMs(config.get<string>('rates_limit.api.window')),
77 MAX: config.get<number>('rates_limit.api.max')
78 },
79 SIGNUP: {
80 WINDOW_MS: parseDurationToMs(config.get<string>('rates_limit.signup.window')),
81 MAX: config.get<number>('rates_limit.signup.max')
82 },
75 LOGIN: { 83 LOGIN: {
76 WINDOW_MS: parseDurationToMs(config.get<string>('rates_limit.login.window')), 84 WINDOW_MS: parseDurationToMs(config.get<string>('rates_limit.login.window')),
77 MAX: config.get<number>('rates_limit.login.max') 85 MAX: config.get<number>('rates_limit.login.max')