24 lines
997 B
Bash
24 lines
997 B
Bash
# ==================== 路径配置 ====================
|
|
VECTORSTORE_PATH=/data/vectorstore
|
|
STATE_FILE=/data/state.json
|
|
SCHEMA_FILE=/data/schema.json
|
|
PRESETS_FILE=/data/presets.json
|
|
REGEX_FILE=/data/regex_rules.json
|
|
|
|
# ==================== 服务地址 ====================
|
|
COMFYUI_API_URL=http://comfyui:8188
|
|
BACKEND_PORT=8000
|
|
FRONTEND_PORT=8501
|
|
|
|
# ==================== API 加密密钥 ====================
|
|
# ⚠️ 重要:此密钥用于加密存储在配置文件中的 API Keys
|
|
# ⚠️ 生产环境必须设置此变量,否则每次重启后无法解密之前的 API Key
|
|
# ⚠️ 生成方法:python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
|
API_ENCRYPTION_KEY=your-encryption-key-here
|
|
|
|
# ==================== 默认 LLM 配置(可选)====================
|
|
# 这些配置仅用于测试,实际使用时请通过 API 配置页面设置
|
|
# MAIN_LLM_API_KEY=sk-your-api-key
|
|
# MAIN_LLM_BASE_URL=https://api.openai.com/v1
|
|
# MAIN_LLM_MODEL=gpt-4
|