Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
rate_limiting: Adjust some rate limiting rules in development.
Mateusz Mandera9f6d32d09633
diff --git a/zproject/dev_settings.py b/zproject/dev_settings.pyindex 61afd6222b5..4f5acec3142 100644--- a/zproject/dev_settings.py+++ b/zproject/dev_settings.py@@ -234,3 +234,16 @@ OUTPUT_COST_PER_GIGATOKEN = 590INPUT_COST_PER_GIGATOKEN = 790MAX_PER_USER_MONTHLY_AI_COST = 1MAX_WEB_DATA_IMPORT_SIZE_MB = 1024++# We override some rate limiting rules in development, when they prove+# excessively limiting for development and testing purposes.+RATE_LIMITING_RULES = {+ "sends_email_by_ip": [+ # This rule puts a limit on actions such as new organization creation,+ # which we sometimes need to test repeatedly in development.+ (86400, 20),+ ],+ "demo_realm_creation_by_ip": [+ (86400, 20),+ ],+}