Files
MCM/.env.example
itdrui.de 23fb37cb1a fix: textual-serve als Web-Frontend statt python -m textual serve
textual serve (python -m textual) startete immer die eingebaute Demo.
Lösung: textual-serve Paket (v1.1.3) mit eigenem serve_tui.py Einstiegspunkt.
Pro Browser-Verbindung wird tui_standalone.py als eigener Subprocess gestartet.

Starten: python serve_tui.py --host 0.0.0.0 --port 8001
2026-03-13 14:12:25 +01:00

37 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# MCM MultiCustomerMessenger Konfiguration
# Datei kopieren: cp .env.example .env
# ── API ────────────────────────────────────────────────────
API_KEY=changeme-secret-key
HOST=0.0.0.0
PORT=8000
DEBUG=false
# ── Telegram ───────────────────────────────────────────────
TELEGRAM_TOKEN=
# ── WhatsApp (Green API) ───────────────────────────────────
# Konto anlegen unter: https://console.green-api.com
WHATSAPP_ID_INSTANCE=
WHATSAPP_API_TOKEN=
# ── SMS / USB-Modem ────────────────────────────────────────
SMS_PORT=/dev/ttyUSB0
SMS_BAUD_RATE=115200
SMS_ENABLED=false
# ── Datenbank ──────────────────────────────────────────────
DATABASE_URL=sqlite:///./mcm.db
# ── TUI Web-Modus (textual serve) ──────────────────────────
# Starten: python serve_tui.py --host 0.0.0.0 --port $WEB_PORT
WEB_PORT=8001
# ── Benutzer-Authentifizierung ──────────────────────────────────────────────
# secret_key: mindestens 32 Zeichen, zufällig generieren (z.B. openssl rand -hex 32)
SECRET_KEY=change-this-secret-key-min-32-chars!!
TOKEN_EXPIRE_HOURS=24
# Standard-Admin-Benutzer (wird beim ersten Start angelegt)
DEFAULT_ADMIN_USER=admin
DEFAULT_ADMIN_PASSWORD=admin