2026-06-19 18:41:35 +08:00
|
|
|
|
# 运行环境
|
|
|
|
|
|
# dev / prod,决定加载 config.dev.yaml 或 config.prod.yaml(可选)
|
|
|
|
|
|
APP_ENV=dev
|
|
|
|
|
|
|
|
|
|
|
|
# AI 服务 API Key
|
|
|
|
|
|
CAMTALK_AI_STT_API_KEY=sk-your-stt-key
|
|
|
|
|
|
CAMTALK_AI_LLM_API_KEY=sk-your-llm-key
|
|
|
|
|
|
CAMTALK_AI_TTS_API_KEY=sk-your-tts-key
|
|
|
|
|
|
|
|
|
|
|
|
# JWT 认证
|
|
|
|
|
|
CAMTALK_AUTH_JWT_SECRET=your-jwt-secret-here
|
|
|
|
|
|
|
2026-06-19 22:53:06 +08:00
|
|
|
|
# 三级存储配置
|
|
|
|
|
|
# L2: Redis(热数据分布式会话层)
|
|
|
|
|
|
CAMTALK_STORAGE_REDIS_ENABLED=true
|
|
|
|
|
|
# 开发时填写远程服务器地址,部署时 docker-compose 会覆盖为容器内网地址
|
|
|
|
|
|
CAMTALK_REDIS_ADDR=your-remote-server:6379
|
|
|
|
|
|
CAMTALK_REDIS_PASSWORD=your-redis-password
|
|
|
|
|
|
|
|
|
|
|
|
# L3: PostgreSQL(冷数据持久化层)
|
|
|
|
|
|
CAMTALK_STORAGE_PERSISTENCE_ENABLED=true
|
|
|
|
|
|
CAMTALK_STORAGE_PERSISTENCE_DRIVER=postgres
|
2026-06-19 18:41:35 +08:00
|
|
|
|
POSTGRES_USER=camtalk
|
|
|
|
|
|
POSTGRES_PASSWORD=your-postgres-password
|
2026-06-19 22:53:06 +08:00
|
|
|
|
# 开发时填写远程服务器地址,部署时 docker-compose 会覆盖为容器内网地址
|
|
|
|
|
|
CAMTALK_STORAGE_DSN=postgres://camtalk:your-postgres-password@your-remote-server:5432/camtalk?sslmode=disable
|
2026-06-19 18:41:35 +08:00
|
|
|
|
|
|
|
|
|
|
# 可选覆盖(默认值见 config.yaml)
|
|
|
|
|
|
# CAMTALK_SERVER_PORT=8080
|
|
|
|
|
|
# CAMTALK_LOG_LEVEL=info
|