increase threshold
This commit is contained in:
parent
b822ea6e02
commit
a9f7d418fb
|
|
@ -544,7 +544,7 @@ if USE_JWT:
|
|||
|
||||
# Throtteling setup
|
||||
THROTTLE_ANON = get_setting('INVENTREE_THROTTLE_ANON', 'throttle.anon', '20/minute')
|
||||
THROTTLE_USER = get_setting('INVENTREE_THROTTLE_USER', 'throttle.user', '20/second')
|
||||
THROTTLE_USER = get_setting('INVENTREE_THROTTLE_USER', 'throttle.user', '60/second')
|
||||
|
||||
if not DEBUG and THROTTLE_ANON and str(THROTTLE_ANON).lower() != 'none':
|
||||
REST_FRAMEWORK['DEFAULT_THROTTLE_RATES']['anon'] = THROTTLE_ANON
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ cors:
|
|||
# Throttling is applied to the API by default to make DoS attacks more difficult; these can be disabled by setting them to None.
|
||||
# throttle:
|
||||
# anon: '20/minute'
|
||||
# user: '20/second'
|
||||
# user: '60/second'
|
||||
|
||||
# MEDIA_ROOT is the local filesystem location for storing uploaded files
|
||||
#media_root: '/home/inventree/data/media'
|
||||
|
|
|
|||
Loading…
Reference in New Issue