feat: Adjust rate limits per feedback - increase uploads to 600/minute, remove processing limit
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -59,19 +59,18 @@ RATE_LIMIT_DEFAULT=100/minute
|
||||
|
||||
# Rate limit for file upload endpoints
|
||||
# Allows faster uploads while still preventing abuse
|
||||
# Default: 10 uploads per second per IP/user (600/minute)
|
||||
RATE_LIMIT_UPLOAD=10/second
|
||||
|
||||
# Rate limit for document processing endpoints (OCR, metadata extraction)
|
||||
# These operations are resource-intensive
|
||||
# Default: 30 requests per minute per IP/user
|
||||
RATE_LIMIT_PROCESS=30/minute
|
||||
# Default: 600 uploads per minute per IP/user
|
||||
RATE_LIMIT_UPLOAD=600/minute
|
||||
|
||||
# Rate limit for authentication endpoints
|
||||
# Strict limit to prevent brute force attacks
|
||||
# Default: 10 attempts per minute per IP
|
||||
RATE_LIMIT_AUTH=10/minute
|
||||
|
||||
# Note: Processing endpoints (OCR, metadata extraction) use built-in queue throttling
|
||||
# via Celery task queue to control processing rates and prevent upstream API overloads.
|
||||
# No additional API-level rate limit is needed for processing endpoints.
|
||||
|
||||
# **Authentication**
|
||||
AUTH_ENABLED=true
|
||||
# Generate a secure random string, for example:
|
||||
|
||||
Reference in New Issue
Block a user