diff --git a/CHANGELOG.md b/CHANGELOG.md index 867bef681920..70ac40d112e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.1.0-alpha] - Unreleased ### Added -- +- Throttling policy for unauthenticated users () ### Changed - diff --git a/cvat/settings/base.py b/cvat/settings/base.py index 29c6fe8502a3..9155f2b38c68 100644 --- a/cvat/settings/base.py +++ b/cvat/settings/base.py @@ -148,6 +148,12 @@ def generate_ssh_keys(): # Disable default handling of the 'format' query parameter by REST framework 'URL_FORMAT_OVERRIDE': 'scheme', + 'DEFAULT_THROTTLE_CLASSES': [ + 'rest_framework.throttling.AnonRateThrottle', + ], + 'DEFAULT_THROTTLE_RATES': { + 'anon': '100/hour', + }, } REST_AUTH_REGISTER_SERIALIZERS = {