Files
paperlessmanager/.env.example
T
bjoernpoettker 1f5dcf4a17 feat: add Agrarmonitor integration module
- New backend module (agrarmonitor) with status check and device registration
- Frontend settings tab with connection status display and registration form
- Environment variables for base URLs, credentials, cookie path and encryption key
- Docker Compose env passthrough for agrarmonitor config

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 21:30:46 +02:00

62 lines
2.1 KiB
Bash

# =============================================================================
# Paperless Manager - Docker Compose Konfiguration
# =============================================================================
# Kopiere diese Datei nach .env und passe die Werte an.
#
# Lokal: VITE_API_URL=http://localhost:3100 (direkter Zugriff)
# Produktion: VITE_API_URL leer lassen (nginx Reverse-Proxy leitet /api weiter)
# =============================================================================
# --- Ports ---
BACKEND_PORT=7601
FRONTEND_PORT=7600
# --- MySQL Datenbank (extern) ---
DB_HOST=192.168.1.x
DB_PORT=3306
DB_USERNAME=root
DB_PASSWORD=changeme
DB_DATABASE=paperlessadd
# --- Paperless-ngx ---
PAPERLESS_URL=http://paperless:8000
PAPERLESS_TOKEN=your_paperless_api_token
# --- Ollama OCR ---
OLLAMA_URL=http://ollama:11434
OLLAMA_MODEL=llava
# --- Scanner ---
SCANNER_WATCH_DIR=/data/scanner
SCANNER_ARCHIVE_DIR=/data/scanner/_processed_archive
# --- OIDC / Authentik ---
OIDC_ISSUER=https://auth.example.com/application/o/your-app-slug
OIDC_CLIENT_ID=your-oidc-client-id
OIDC_REDIRECT_URI=https://dokumente.example.com/auth/callback
# --- Frontend API-URL ---
# Lokal: http://localhost:3100 (Backend direkt)
# Produktion: leer lassen (nginx proxied /api → Backend)
VITE_API_URL=
# --- Interne Belegnummer API ---
# Platzhalter {Jahr} wird zur Laufzeit durch das Jahr des Eingangsdatums ersetzt
BELEGNUMMER_GET_URL=https://beispiel-api.de/get-number/{Jahr}
BELEGNUMMER_SET_URL=https://beispiel-api.de/set-number/{Jahr}/{Nummer}
# --- CORS ---
# Erlaubte Frontend-Origin für CORS. In Produktion PFLICHT (z.B. https://paperless.example.com).
# Leer lassen für lokale Entwicklung (erlaubt alle Origins).
# NODE_ENV=production ohne CORS_ORIGIN blockiert alle Cross-Origin-Anfragen.
CORS_ORIGIN=
# --- Agrarmonitor ---
AGRARMONITOR_BASE_URL=https://admin7.agrarmonitor.de
AGRARMONITOR_API_BASE_URL=https://api.agrarmonitor.de
AGRARMONITOR_USERNAME=
AGRARMONITOR_PASSWORD=
AGRARMONITOR_API_TOKEN=
AGRARMONITOR_COOKIE_PATH=./data/agrarmonitor-cookies.json
AGRARMONITOR_ENCRYPTION_KEY= # optional, 16+ Zeichen für Cookie-Verschlüsselung