06/04 Optimize app
This commit is contained in:
@@ -39,6 +39,10 @@ class Config:
|
||||
# Sentry error monitoring (optional — leave blank to disable)
|
||||
SENTRY_DSN = os.environ.get('SENTRY_DSN', '')
|
||||
|
||||
# Rate limiter shared storage (use Redis in production to share limits across Gunicorn workers)
|
||||
# Example: RATELIMIT_STORAGE_URI=redis://localhost:6379
|
||||
RATELIMIT_STORAGE_URI = os.environ.get('RATELIMIT_STORAGE_URI', 'memory://')
|
||||
|
||||
# Session idle timeout in minutes (default 60)
|
||||
SESSION_IDLE_MINUTES = int(os.environ.get('SESSION_IDLE_MINUTES', 60))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user