# Runtime paths DATA_ROOT=../data BOTS_WORKSPACE_ROOT=../workspace/bots # Database # PostgreSQL is required: DATABASE_URL=postgresql+psycopg://user:password@127.0.0.1:5432/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= # 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 # 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 / 平台参数: # - page_size # - chat_pull_page_size # - command_auto_unlock_seconds # - upload_max_mb # - allowed_attachment_extensions # - workspace_download_extensions # - speech_enabled # 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