From 1b7c9acc051296d2f913e374713400bae05617aa Mon Sep 17 00:00:00 2001 From: Daniel Perrefort Date: Wed, 6 Nov 2024 12:58:02 -0500 Subject: [PATCH] Increase default API rate limits (#473) --- docs/install/settings.md | 4 ++-- keystone_api/main/settings.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/install/settings.md b/docs/install/settings.md index cecb55b9..e0fe542c 100644 --- a/docs/install/settings.md +++ b/docs/install/settings.md @@ -55,8 +55,8 @@ Limits are specified as the maximum number of requests per `day`, `minute`, `hou | Setting Name | Default Value | Description | |---------------------|---------------|------------------------------------------------------| -| `API_THROTTLE_ANON` | `1000/day` | Rate limiting for anonymous (unauthenticated) users. | -| `API_THROTTLE_USER` | `10000/day` | Rate limiting for authenticated users. | +| `API_THROTTLE_ANON` | `120/min` | Rate limiting for anonymous (unauthenticated) users. | +| `API_THROTTLE_USER` | `240/min` | Rate limiting for authenticated users. | ## Database Connection diff --git a/keystone_api/main/settings.py b/keystone_api/main/settings.py index bcafeddd..6e02386f 100644 --- a/keystone_api/main/settings.py +++ b/keystone_api/main/settings.py @@ -170,8 +170,8 @@ 'rest_framework.throttling.UserRateThrottle' ], 'DEFAULT_THROTTLE_RATES': { - 'anon': env.str('API_THROTTLE_ANON', '1000/day'), - 'user': env.str('API_THROTTLE_USER', '10000/day') + 'anon': env.str('API_THROTTLE_ANON', '120/min'), + 'user': env.str('API_THROTTLE_USER', '240/min') }, 'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer',