rtc-voice-chat/backend/.env.staging
2026-04-02 20:15:15 +08:00

93 lines
2.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ============ 测试环境配置 ============
# 此文件用于 staging 测试环境,指向测试资源而非生产资源
# 不要提交真实密钥到 git建议通过 CI/CD secret 管理
# ============ 火山引擎账号凭证 ============
CUSTOM_ACCESS_KEY_ID=your-staging-access-key-id
CUSTOM_SECRET_KEY=your-staging-secret-key
# ============ RTC 配置 ============
CUSTOM_RTC_APP_ID=your-staging-rtc-app-id
CUSTOM_RTC_APP_KEY=
CUSTOM_RTC_ROOM_ID=
CUSTOM_RTC_USER_ID=
CUSTOM_RTC_TOKEN=
RTC_OPENAPI_VERSION=2025-06-01
# ============ 场景配置 ============
CUSTOM_SCENE_NAME=测试助手
CUSTOM_SCENE_ICON=https://lf3-rtc-demo.volccdn.com/obj/rtc-aigc-assets/DoubaoAvatar.png
CUSTOM_TASK_ID=your-staging-task-id
CUSTOM_AGENT_USER_ID=your-staging-agent-user-id
CUSTOM_AGENT_TARGET_USER_ID=
CUSTOM_AGENT_WELCOME_MESSAGE=你好,我是测试助手。
CUSTOM_INTERRUPT_MODE=0
# ============ LLM 配置 (RTC OpenAPI 侧) ============
# 测试环境回调地址 —— 改成 staging 服务器的公网地址
CUSTOM_LLM_URL=https://your-staging-domain.example.com/v1/api/chat_callback
CUSTOM_LLM_API_KEY=your-staging-llm-api-key
CUSTOM_LLM_THINKING_TYPE=disabled
CUSTOM_LLM_VISION_ENABLE=false
CUSTOM_LLM_MODEL_NAME=
CUSTOM_LLM_HISTORY_LENGTH=
CUSTOM_LLM_PREFILL=
CUSTOM_LLM_CUSTOM=
CUSTOM_LLM_EXTRA_HEADER_JSON=
CUSTOM_LLM_ENABLE_PARALLEL_TOOL_CALLS=
CUSTOM_LLM_TEMPERATURE=
CUSTOM_LLM_TOP_P=
CUSTOM_LLM_MAX_TOKENS=
# ============ 本地 LLM 回调配置 ============
LOCAL_LLM_API_KEY=your-staging-ark-api-key
LOCAL_LLM_BASE_URL=https://ark.cn-beijing.volces.com/api/v3
LOCAL_LLM_MODEL=your-staging-ark-endpoint-id
LOCAL_LLM_TIMEOUT_SECONDS=1800
LOCAL_LLM_TEMPERATURE=0.3
# ============ ASR / TTS ============
CUSTOM_ASR_APP_ID=your-staging-asr-app-id
CUSTOM_TTS_APP_ID=your-staging-tts-app-id
CUSTOM_ASR_PROVIDER=volcano
CUSTOM_ASR_MODE=smallmodel
CUSTOM_ASR_CLUSTER=volcengine_streaming_common
CUSTOM_TTS_PROVIDER=volcano
CUSTOM_TTS_CLUSTER=volcano_tts
CUSTOM_TTS_VOICE_TYPE=BV001_streaming
CUSTOM_TTS_SPEED_RATIO=1
CUSTOM_TTS_PITCH_RATIO=1
CUSTOM_TTS_VOLUME_RATIO=1
# ============ RAG 配置 ============
VOLC_KB_ENABLED=false
VOLC_KB_NAME=
VOLC_KB_RESOURCE_ID=
VOLC_KB_PROJECT=default
VOLC_KB_ENDPOINT=
VOLC_KB_TOP_K=3
VOLC_KB_RERANK=false
VOLC_KB_ATTACHMENT_LINK=false
RAG_STATIC_CONTEXT=
RAG_CONTEXT_FILE=
# ============ 数字人 ============
CUSTOM_AVATAR_ENABLED=false
CUSTOM_AVATAR_TYPE=3min
CUSTOM_AVATAR_ROLE=
CUSTOM_AVATAR_BACKGROUND_URL=
CUSTOM_AVATAR_VIDEO_BITRATE=2000
CUSTOM_AVATAR_APP_ID=
CUSTOM_AVATAR_TOKEN=
# ============ Tools ============
TOOLS_ENABLED=true
TOOLS_MAX_ROUNDS=5
# ============ 内部鉴权 ============
INTERNAL_SERVICE_SECRET=your-staging-internal-secret
# ============ 测试环境专属 ============
LOG_LEVEL=info
PORT=3001