mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
94 lines
2.8 KiB
Plaintext
94 lines
2.8 KiB
Plaintext
# ==========================================
|
|
# AstrBot Environment Configuration Example
|
|
# ==========================================
|
|
# Copy this file to .env and adjust the values as needed.
|
|
# Note: Variables set here will override default configurations.
|
|
|
|
# ------------------------------------------
|
|
# Core Configuration (核心配置)
|
|
# ------------------------------------------
|
|
|
|
# AstrBot root directory path. Defaults to current working directory or ~/.astrbot for desktop client.
|
|
# ASTRBOT_ROOT=/path/to/astrbot
|
|
|
|
# Log level. Options: DEBUG, INFO, WARNING, ERROR, CRITICAL. Default: INFO.
|
|
# ASTRBOT_LOG_LEVEL=INFO
|
|
|
|
# Enable plugin auto-reload. Set to "1" to enable. Useful for development.
|
|
# ASTRBOT_RELOAD=0
|
|
|
|
# Disable metrics upload. Set to "1" to disable anonymous usage statistics.
|
|
# ASTRBOT_DISABLE_METRICS=0
|
|
|
|
# Python executable path override (used for local code execution feature).
|
|
# PYTHON=/usr/bin/python3
|
|
|
|
# Enable demo mode (might restrict some features).
|
|
# DEMO_MODE=False
|
|
|
|
# Enable testing mode (affects logging and some behaviors).
|
|
# TESTING=False
|
|
|
|
# Flag indicating execution via desktop client (Internal use mostly).
|
|
# ASTRBOT_DESKTOP_CLIENT=0
|
|
|
|
# Flag indicating execution via systemd service.
|
|
# ASTRBOT_SYSTEMD=0
|
|
|
|
# ------------------------------------------
|
|
# Dashboard Configuration (管理面板配置)
|
|
# ------------------------------------------
|
|
|
|
# Enable or disable the WebUI Dashboard. Default: True.
|
|
# ASTRBOT_DASHBOARD_ENABLE=True
|
|
|
|
# Dashboard bind host. Default: 0.0.0.0 (listen on all interfaces).
|
|
# ASTRBOT_DASHBOARD_HOST=0.0.0.0
|
|
|
|
# Dashboard bind port. Default: 6185.
|
|
# ASTRBOT_DASHBOARD_PORT=6185
|
|
|
|
# Enable SSL (HTTPS) for the dashboard.
|
|
# ASTRBOT_DASHBOARD_SSL_ENABLE=False
|
|
|
|
# SSL Certificate path (required if SSL is enabled).
|
|
# ASTRBOT_DASHBOARD_SSL_CERT=/path/to/cert.pem
|
|
|
|
# SSL Key path (required if SSL is enabled).
|
|
# ASTRBOT_DASHBOARD_SSL_KEY=/path/to/key.pem
|
|
|
|
# SSL CA Certificates path (optional).
|
|
# ASTRBOT_DASHBOARD_SSL_CA_CERTS=/path/to/ca.pem
|
|
|
|
# ------------------------------------------
|
|
# Network Configuration (网络配置)
|
|
# ------------------------------------------
|
|
|
|
# HTTP/HTTPS Proxy URL (e.g., http://127.0.0.1:7890).
|
|
# http_proxy=
|
|
# https_proxy=
|
|
|
|
# No proxy list (comma-separated domains/IPs to bypass proxy).
|
|
# no_proxy=localhost,127.0.0.1
|
|
|
|
# ------------------------------------------
|
|
# Integrations (第三方集成)
|
|
# ------------------------------------------
|
|
|
|
# Alibaba DashScope API Key (used for Rerank service).
|
|
# DASHSCOPE_API_KEY=sk-xxxxxxxxxxxx
|
|
|
|
# Coze Integration
|
|
# COZE_API_KEY=
|
|
# COZE_BOT_ID=
|
|
|
|
# Computer Use data directory (for screenshot/file storage related to computer control).
|
|
# BAY_DATA_DIR=
|
|
|
|
# ------------------------------------------
|
|
# Platform Specific (平台特定配置)
|
|
# ------------------------------------------
|
|
|
|
# Test mode for QQ Official Bot.
|
|
# TEST_MODE=off
|