50 lines
2.3 KiB
Text
50 lines
2.3 KiB
Text
# Beispielkonfiguration. Alle Werte sind optional; gezeigt sind die Defaults
|
|
# bzw. typische Werte für den Betrieb im Container.
|
|
|
|
# --- Transport ---------------------------------------------------------------
|
|
MCP_CALC_TRANSPORT=http # stdio | http
|
|
MCP_CALC_HOST=0.0.0.0 # im Container 0.0.0.0, lokal 127.0.0.1
|
|
MCP_CALC_PORT=8080
|
|
MCP_CALC_PATH=/mcp
|
|
|
|
# Erlaubte Host-Header (kommagetrennt). Gesetzt = DNS-Rebinding-Schutz aktiv.
|
|
MCP_CALC_ALLOWED_HOSTS=
|
|
MCP_CALC_ALLOWED_ORIGINS=
|
|
# Proxys (z. B. OpenShift-Router), deren X-Forwarded-For ausgewertet wird (IPs/CIDRs)
|
|
MCP_CALC_TRUSTED_PROXIES=
|
|
MCP_CALC_MAX_REQUEST_BODY_BYTES=1048576
|
|
MCP_CALC_MAX_CONNECTIONS=200
|
|
MCP_CALC_METRICS=true # Prometheus-Metriken unter /metrics
|
|
|
|
# --- Authentifizierung (nur HTTP, siehe docs/auth.md) ------------------------
|
|
MCP_CALC_CLIENTS_FILE=/data/clients.json # RWX-PVC; aktiviert die Authentifizierung
|
|
MCP_CALC_CLIENTS_RELOAD_SECONDS=5
|
|
MCP_CALC_AUDIT_FILE=/data/audit.log
|
|
# Statische Tokens name:token (einfache Alternative zur Client-Datei)
|
|
MCP_CALC_AUTH_TOKENS=
|
|
# Admin-API: startet nur, wenn Admin-Tokens gesetzt sind (Wert aus einem Secret!)
|
|
MCP_CALC_ADMIN_TOKENS=
|
|
MCP_CALC_ADMIN_HOST=127.0.0.1
|
|
MCP_CALC_ADMIN_PORT=9090
|
|
|
|
# --- Ausführung --------------------------------------------------------------
|
|
MCP_CALC_EXECUTOR=process # process | inline (nur Entwicklung)
|
|
MCP_CALC_WORKERS=2 # ~ Anzahl CPU-Kerne des Pods
|
|
MCP_CALC_MAX_QUEUE=20 # wartende Berechnungen; darüber sofort "busy"
|
|
MCP_CALC_MAX_QUEUE_WAIT_SECONDS=30 # maximale Wartezeit auf einen freien Worker
|
|
MCP_CALC_CLIENT_MAX_CONCURRENT=10 # gleichzeitige Berechnungen pro Client (0 = unbegrenzt)
|
|
MCP_CALC_TIMEOUT_SECONDS=10
|
|
MCP_CALC_MAX_TASKS_PER_WORKER=200
|
|
MCP_CALC_MEMORY_LIMIT_MB=512 # zusätzlicher Speicher pro Berechnung/Worker, nur Linux, 0 = aus
|
|
|
|
# --- Eingabe-/Ausgabelimits --------------------------------------------------
|
|
MCP_CALC_MAX_INPUT_LENGTH=5000
|
|
MCP_CALC_MAX_OUTPUT_LENGTH=20000
|
|
MCP_CALC_MAX_PRECISION=1000
|
|
MCP_CALC_MAX_MATRIX_SIZE=30
|
|
MCP_CALC_MAX_DATA_POINTS=1000000
|
|
MCP_CALC_MAX_LIST_ITEMS=10000
|
|
|
|
# --- Logging -----------------------------------------------------------------
|
|
MCP_CALC_LOG_LEVEL=INFO # DEBUG | INFO | WARNING | ERROR
|
|
MCP_CALC_LOG_FORMAT=json # text | json
|