bettersight-statement-extra.../backend/dependencies.py

11 lines
495 B
Python

# Shared configuration singletons: read from environment once at import
# time, imported directly by repositories/services rather than through
# Flask's `current_app` - keeps the repository layer Flask-agnostic
# (ENTERPRISE_STANDARDS.md's layering: repositories do data access, not
# HTTP-framework-aware work).
import os
DOCLING_URL = os.environ.get("DOCLING_URL", "http://localhost:5001")
UPLOAD_FOLDER = os.environ.get("UPLOAD_FOLDER", "/app/uploads")
MAX_CONTENT_LENGTH = 50 * 1024 * 1024