60 lines
1.6 KiB
Bash
60 lines
1.6 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
|
|
DATABASE_POOL_SIZE=20
|
|
DATABASE_MAX_OVERFLOW=40
|
|
DATABASE_POOL_TIMEOUT=30
|
|
DATABASE_POOL_RECYCLE=1800
|
|
|
|
# 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=
|
|
# The following platform-level items are now managed in sys_setting / 平台参数:
|
|
# - page_size
|
|
# - chat_pull_page_size
|
|
# - upload_max_mb
|
|
# - allowed_attachment_extensions
|
|
# - workspace_download_extensions
|
|
# - speech_enabled
|
|
# - speech_max_audio_seconds
|
|
# - speech_default_language
|
|
# - speech_force_simplified
|
|
# - speech_audio_preprocess
|
|
# - speech_audio_filter
|
|
# - speech_initial_prompt
|
|
|
|
# Local speech-to-text (Whisper via whisper.cpp model file)
|
|
STT_MODEL=ggml-small-q8_0.bin
|
|
STT_MODEL_DIR=../data/model
|
|
STT_DEVICE=cpu
|
|
|
|
# Local backend server options (for `python3 main.py`)
|
|
APP_HOST=0.0.0.0
|
|
APP_PORT=8000
|
|
APP_RELOAD=true
|
|
|
|
# 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=
|