aab8e47d3e
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
79 lines
2.1 KiB
Bash
79 lines
2.1 KiB
Bash
# ========== 服务配置 ==========
|
|
ENV=development
|
|
LOG_LEVEL=debug
|
|
|
|
# ========== 数据库 ==========
|
|
POSTGRES_HOST=localhost
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_USER=cyrene
|
|
POSTGRES_PASSWORD=cyrene_pass
|
|
POSTGRES_DB=cyrene_ai
|
|
|
|
# ========== Redis ==========
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=
|
|
|
|
# ========== LLM API ==========
|
|
LLM_API_URL=https://api.openai.com/v1
|
|
LLM_API_KEY=sk-xxxxx
|
|
LLM_MODEL=gpt-4o
|
|
LLM_FALLBACK_MODEL=gpt-4o-mini
|
|
|
|
# ========== DashScope STT (语音识别) ==========
|
|
DASHSCOPE_API_KEY=sk-xxxxx
|
|
DASHSCOPE_STT_MODEL=qwen3-asr-flash-2026-02-10
|
|
DASHSCOPE_STT_REALTIME_MODEL=qwen3-asr-flash-realtime
|
|
|
|
# ========== TTS/ASR (本地回退) ==========
|
|
TTS_PROVIDER=edge-tts
|
|
TTS_VOICE=zh-CN-XiaoxiaoNeural
|
|
ASR_PROVIDER=faster-whisper
|
|
ASR_MODEL=medium
|
|
|
|
# ========== 文件存储 ==========
|
|
MINIO_ENDPOINT=localhost:9000
|
|
MINIO_ACCESS_KEY=minioadmin
|
|
MINIO_SECRET_KEY=minioadmin
|
|
MINIO_BUCKET=cyrene-assets
|
|
|
|
# ========== 管理员账户 (开发阶段使用) ==========
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=your-admin-password
|
|
|
|
# ========== 管理员昵称 (昔涟对用户的基本称呼) ==========
|
|
ADMIN_NICKNAME=管理员
|
|
|
|
# ========== 注册开关 (开发环境建议开启) ==========
|
|
REGISTRATION_ENABLED=true
|
|
|
|
# ========== JWT ==========
|
|
JWT_SECRET=your-secret-key-change-in-production
|
|
JWT_EXPIRY_HOURS=720
|
|
|
|
# ========== 内部服务认证 ==========
|
|
INTERNAL_SERVICE_TOKEN=your-internal-token-change-in-production
|
|
|
|
# ========== IoT 调试服务 ==========
|
|
IOT_SERVICE_URL=http://localhost:8083
|
|
|
|
# ========== 后端微服务地址 ==========
|
|
MEMORY_SERVICE_URL=http://localhost:8091
|
|
TOOL_ENGINE_URL=http://localhost:8092
|
|
VOICE_SERVICE_URL=http://localhost:8093
|
|
|
|
# ========== 后台思考 ==========
|
|
ENABLE_BACKGROUND_THINKING=true
|
|
THINK_OFFLINE_GAP_SEC=600
|
|
|
|
# ========== Webhook (第三方平台接入) ==========
|
|
WEBHOOK_API_KEY=your-webhook-api-key
|
|
|
|
# ========== CORS 跨域白名单 (逗号分隔) ==========
|
|
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:5199,http://localhost:3000
|
|
|
|
# ========== 记忆系统 ==========
|
|
MEMORY_FILE_PATH=./data/memory
|
|
VECTOR_DB_URL=http://localhost:6333
|
|
VECTOR_DB_COLLECTION=cyrene_memories
|