dashboard-nanobot/backend/.env.example

66 lines
2.2 KiB
Bash

# Runtime paths
DATA_ROOT=../data
BOTS_WORKSPACE_ROOT=../workspace/bots
# Database
# SQLite (recommended): leave DATABASE_URL unset, backend will use:
# sqlite:///{DATA_ROOT}/nanobot_dashboard.db
# DATABASE_URL=sqlite:///../data/nanobot_dashboard.db
# PostgreSQL example:
# DATABASE_URL=postgresql+psycopg://user:password@127.0.0.1:5432/nanobot_dashboard
# MySQL example:
# DATABASE_URL=mysql+pymysql://user:password@127.0.0.1:3306/nanobot_dashboard
# Show SQL statements in backend logs (debug only).
DATABASE_ECHO=true
# Redis cache
REDIS_ENABLED=false
# Example:
# REDIS_URL=redis://127.0.0.1:6379/8
REDIS_URL=
REDIS_PREFIX=dashboard_nanobot
REDIS_DEFAULT_TTL=60
# Optional panel-level access password for all backend API/WS calls.
PANEL_ACCESS_PASSWORD=
# Internal URL used by built-in topic_mcp server inside bot container
TOPIC_MCP_INTERNAL_URL=http://host.docker.internal:8000/api/mcp/topic
# Max upload size for backend validation (MB)
UPLOAD_MAX_MB=100
# Workspace files that should use direct download behavior in dashboard
# Comma/space/semicolon separated, e.g. ".pdf,.docx,.xlsx,.zip"
WORKSPACE_DOWNLOAD_EXTENSIONS=.pdf,.doc,.docx,.xls,.xlsx,.xlsm,.ppt,.pptx,.odt,.ods,.odp,.wps
# Local speech-to-text (Whisper via whisper.cpp model file)
STT_ENABLED=true
STT_MODEL=ggml-small-q8_0.bin
STT_MODEL_DIR=../data/model
STT_DEVICE=cpu
STT_MAX_AUDIO_SECONDS=20
STT_DEFAULT_LANGUAGE=zh
STT_FORCE_SIMPLIFIED=true
STT_AUDIO_PREPROCESS=true
STT_AUDIO_FILTER=highpass=f=120,lowpass=f=7600,afftdn=nf=-20
STT_INITIAL_PROMPT=以下内容可能包含简体中文和英文术语。请优先输出简体中文,英文单词、缩写、品牌名和数字保持原文,不要翻译。
# Local backend server options (for `python3 main.py`)
APP_HOST=0.0.0.0
APP_PORT=8000
APP_RELOAD=true
# Template files (no hard-coded default content in code)
# Agent template file must include:
# agents_md, soul_md, user_md, tools_md, identity_md
AGENT_MD_TEMPLATES_FILE=templates/agent_md_templates.json
# Topic presets template file must include:
# { "presets": [ ... ] }
TOPIC_PRESETS_TEMPLATES_FILE=templates/topic_presets.json
# Optional overrides (fallback only; usually keep empty when using template files)
DEFAULT_AGENTS_MD=
DEFAULT_SOUL_MD=
DEFAULT_USER_MD=
DEFAULT_TOOLS_MD=
DEFAULT_IDENTITY_MD=