06/04 Optimize app

This commit is contained in:
2026-06-04 10:48:31 -04:00
parent 3abd073437
commit 8bed900297
6 changed files with 22 additions and 11 deletions
+4
View File
@@ -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))