2026-03-01 16:26:03 +00:00
|
|
|
# Runtime paths
|
|
|
|
|
DATA_ROOT=../data
|
|
|
|
|
BOTS_WORKSPACE_ROOT=../workspace/bots
|
|
|
|
|
|
|
|
|
|
# Database
|
2026-04-02 04:14:08 +00:00
|
|
|
# PostgreSQL is required:
|
|
|
|
|
DATABASE_URL=postgresql+psycopg://user:password@127.0.0.1:5432/nanobot_dashboard
|
2026-03-01 16:26:03 +00:00
|
|
|
# Show SQL statements in backend logs (debug only).
|
|
|
|
|
DATABASE_ECHO=true
|
2026-03-14 07:44:11 +00:00
|
|
|
DATABASE_POOL_SIZE=20
|
|
|
|
|
DATABASE_MAX_OVERFLOW=40
|
|
|
|
|
DATABASE_POOL_TIMEOUT=30
|
|
|
|
|
DATABASE_POOL_RECYCLE=1800
|
2026-03-09 04:53:15 +00:00
|
|
|
|
|
|
|
|
# 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=
|
2026-04-03 15:00:08 +00:00
|
|
|
|
|
|
|
|
# Explicit CORS allowlist for browser credential requests.
|
|
|
|
|
# For local development, the backend defaults to common Vite dev origins.
|
|
|
|
|
# In production, prefer same-origin `/api` reverse proxy, or set your real dashboard origin explicitly.
|
|
|
|
|
# Example:
|
|
|
|
|
# CORS_ALLOWED_ORIGINS=http://localhost:5173,https://dashboard.example.com
|
2026-04-13 11:28:36 +00:00
|
|
|
# Default timezone injected into newly created bot runtime env (`TZ`).
|
|
|
|
|
DEFAULT_BOT_SYSTEM_TIMEZONE=Asia/Shanghai
|
|
|
|
|
|
|
|
|
|
# The following platform-level items are initialized by SQL and managed in sys_setting / 平台参数:
|
2026-03-17 19:52:50 +00:00
|
|
|
# - page_size
|
|
|
|
|
# - chat_pull_page_size
|
2026-04-02 12:27:06 +00:00
|
|
|
# - command_auto_unlock_seconds
|
2026-03-17 19:52:50 +00:00
|
|
|
# - upload_max_mb
|
|
|
|
|
# - allowed_attachment_extensions
|
|
|
|
|
# - workspace_download_extensions
|
|
|
|
|
# - speech_enabled
|
2026-03-03 06:09:11 +00:00
|
|
|
|
2026-03-11 17:20:57 +00:00
|
|
|
# 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
|
|
|
|
|
|
2026-03-01 16:26:03 +00:00
|
|
|
# Local backend server options (for `python3 main.py`)
|
|
|
|
|
APP_HOST=0.0.0.0
|
|
|
|
|
APP_PORT=8000
|
|
|
|
|
APP_RELOAD=true
|