Initial commit: breakpilot-core - Shared Infrastructure
Docker Compose with 24+ services: - PostgreSQL (PostGIS), Valkey, MinIO, Qdrant - Vault (PKI/TLS), Nginx (Reverse Proxy) - Backend Core API, Consent Service, Billing Service - RAG Service, Embedding Service - Gitea, Woodpecker CI/CD - Night Scheduler, Health Aggregator - Jitsi (Web/XMPP/JVB/Jicofo), Mailpit Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
18
backend-core/config.py
Normal file
18
backend-core/config.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from pathlib import Path
|
||||
|
||||
BASE_DIR = Path.home() / "Arbeitsblaetter"
|
||||
EINGANG_DIR = BASE_DIR / "Eingang"
|
||||
BEREINIGT_DIR = BASE_DIR / "Bereinigt"
|
||||
EDITIERBAR_DIR = BASE_DIR / "Editierbar"
|
||||
NEU_GENERIERT_DIR = BASE_DIR / "Neu_generiert"
|
||||
|
||||
VALID_SUFFIXES = {".jpg", ".jpeg", ".png", ".pdf", ".JPG", ".JPEG", ".PNG", ".PDF"}
|
||||
|
||||
# Ordner sicherstellen
|
||||
for d in [EINGANG_DIR, BEREINIGT_DIR, EDITIERBAR_DIR, NEU_GENERIERT_DIR]:
|
||||
d.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
||||
def is_valid_input_file(path: Path) -> bool:
|
||||
"""Gemeinsame Filterlogik für Eingangsdateien."""
|
||||
return path.is_file() and not path.name.startswith(".") and path.suffix in VALID_SUFFIXES
|
||||
Reference in New Issue
Block a user