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

12 lines
559 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")
OUTPUT_FOLDER = os.environ.get("OUTPUT_FOLDER", "/app/outputs")
MAX_CONTENT_LENGTH = 50 * 1024 * 1024