# 生产环境配置模板（实际使用时复制为 .env.production）

# ==================== 基础配置 ====================
APP_ENV=production
ENVIRONMENT=production
DEBUG=false
USE_IN_MEMORY_DB=false
LOG_LEVEL=WARNING

# ==================== 数据库（必须修改）====================
DATABASE_URL=postgresql://prod_user:CHANGE_THIS_PASSWORD@db-prod:5432/xiaoxia_prod

# ==================== Redis（必须修改）====================
REDIS_URL=redis://:CHANGE_THIS_PASSWORD@redis-prod:6379/0
ENABLE_REDIS_SESSIONS=false

# ==================== JWT（必须修改，至少 32 字符）====================
JWT_SECRET_KEY=CHANGE_THIS_TO_A_RANDOM_SECRET_KEY_AT_LEAST_32_CHARS

# ==================== 邮件（必须配置）====================
ENABLE_EMAIL_DELIVERY=false
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=CHANGE_ME_SMTP_USER
SMTP_PASSWORD=CHANGE_ME_SMTP_PASSWORD
SMTP_FROM_EMAIL=noreply@yourdomain.com
SMTP_FROM_NAME=小虾 SaaS
SMTP_USE_TLS=true

# ==================== 应用配置 ====================
APP_BASE_URL=https://yourdomain.com

# ==================== CORS（修改为实际域名，逗号分隔）====================
CORS_ORIGINS_RAW=https://yourdomain.com,https://app.yourdomain.com

# ==================== 阿里云 OSS（必须配置）====================
OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
OSS_ACCESS_KEY_ID=CHANGE_ME_ACCESS_KEY_ID
OSS_ACCESS_KEY_SECRET=CHANGE_ME_ACCESS_KEY_SECRET
OSS_BUCKET_NAME=xiaoxia-autocut
OSS_DIRECT_UPLOAD_MAX_MB=2000
OSS_DIRECT_UPLOAD_EXPIRE_SECONDS=900

# ==================== CosyVoice 语音合成（必须配置）====================
COSYVOICE_API_KEY=CHANGE_ME_COSYVOICE_API_KEY
COSYVOICE_BASE_URL=https://dashscope.aliyuncs.com/api/v1/services/aigc/text2audio
COSYVOICE_MODEL=cosyvoice-v1
COSYVOICE_VOICE=longxiaochun
COSYVOICE_SAMPLE_RATE=22050
COSYVOICE_FORMAT=mp3

# ==================== 生成文件 ====================
GENERATED_FILES_DIR=/app/generated
GENERATED_FILES_URL_PREFIX=/generated-files
PUBLIC_API_BASE_URL=https://api.xiaoxiajianji.com

# ==================== Celery ====================
CELERY_BROKER_URL=redis://:CHANGE_THIS_PASSWORD@redis-prod:6379/0
CELERY_RESULT_BACKEND=redis://:CHANGE_THIS_PASSWORD@redis-prod:6379/1

# ==================== 监控（可选）====================
# SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
