Skip to content

Commit

Permalink
Increase default API rate limits (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort authored Nov 6, 2024
1 parent 87b631b commit 1b7c9ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/install/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions keystone_api/main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1b7c9ac

Please sign in to comment.