mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Fixed default throttle class
This commit is contained in:
@@ -186,11 +186,6 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
# Rest framework settings
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_THROTTLE_CLASSES': [
|
||||
'rest_framework.throttling.AnonRateThrottle',
|
||||
'rest_framework.throttling.ScopedRateThrottle',
|
||||
'modoboa.lib.throttle.UserDosThrottle'
|
||||
],
|
||||
'DEFAULT_THROTTLE_RATES': {
|
||||
'anon': '100/hour',
|
||||
'login': '3/minute',
|
||||
|
||||
Reference in New Issue
Block a user