25 lines
808 B
Python
Executable file
25 lines
808 B
Python
Executable file
"""Zentrale Konfiguration"""
|
|
import os
|
|
from pathlib import Path
|
|
|
|
# Basis-Pfade
|
|
BASE_DIR = Path(__file__).parent.parent.parent
|
|
REGELN_DIR = BASE_DIR / "regeln"
|
|
|
|
# Datenbank (Default SQLite nur für lokale Entwicklung)
|
|
DATABASE_URL = os.getenv("DATABASE_URL", "sqlite:///dateiverwaltung.db")
|
|
|
|
# Fallback-Ordner (werden nur verwendet wenn kein Zielordner angegeben)
|
|
# Diese werden NICHT automatisch erstellt - nur als Fallback-Pfade definiert
|
|
DATA_DIR = Path("/app/data") # Container-interner Pfad
|
|
INBOX_DIR = DATA_DIR / "inbox"
|
|
PROCESSED_DIR = DATA_DIR / "processed"
|
|
ARCHIVE_DIR = DATA_DIR / "archive"
|
|
ZUGFERD_DIR = DATA_DIR / "zugferd"
|
|
|
|
# OCR Einstellungen
|
|
OCR_LANGUAGE = "deu" # Deutsch
|
|
OCR_DPI = 300
|
|
|
|
# Nur Regeln-Ordner erstellen (wird per Volume gemountet)
|
|
REGELN_DIR.mkdir(parents=True, exist_ok=True)
|