increase threshold

This commit is contained in:
Matthias Mair 2026-05-16 12:19:54 +02:00
parent b822ea6e02
commit a9f7d418fb
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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'