From 7ddc07ee607ce2650b38d16b9082894414016e6e Mon Sep 17 00:00:00 2001 From: Pwd9000-ML Date: Sun, 21 Jan 2024 11:39:41 +0000 Subject: [PATCH] test --- 06_librechat_app_config.tf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/06_librechat_app_config.tf b/06_librechat_app_config.tf index bf9586d..1e16f45 100644 --- a/06_librechat_app_config.tf +++ b/06_librechat_app_config.tf @@ -49,6 +49,32 @@ locals { ### User - Balance ### #CHECK_BALANCE = false + BAN_VIOLATIONS = true + BAN_DURATION = 1000 * 60 * 60 * 2 + BAN_INTERVAL = 20 + + LOGIN_VIOLATION_SCORE = 1 + REGISTRATION_VIOLATION_SCORE = 1 + CONCURRENT_VIOLATION_SCORE = 1 + MESSAGE_VIOLATION_SCORE = 1 + NON_BROWSER_VIOLATION_SCORE = 20 + + LOGIN_MAX = 7 + LOGIN_WINDOW = 5 + REGISTER_MAX = 5 + REGISTER_WINDOW = 60 + + LIMIT_CONCURRENT_MESSAGES = true + CONCURRENT_MESSAGE_MAX = 2 + + LIMIT_MESSAGE_IP = true + MESSAGE_IP_MAX = 40 + MESSAGE_IP_WINDOW = 1 + + LIMIT_MESSAGE_USER = false + MESSAGE_USER_MAX = 40 + MESSAGE_USER_WINDOW = 1 + ### User - Registration and Login ### ALLOW_EMAIL_LOGIN = var.libre_app_allow_email_login #true ALLOW_REGISTRATION = var.libre_app_allow_registration #true