f7c8b441d6
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 173h2m54s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 173h2m59s
Deploy / Deploy Staging (push) Failing after 173h22m24s
CI/CD Pipeline / Frontend Lint (push) Failing after 173h22m54s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 173h23m2s
Task 3.01: CosyVoice 配置 - 在 SharedSettings 中添加 CosyVoice 配置字段 - 更新 .env.example 和 .env.production.example Task 3.02: VoiceCloneProfile 领域模型 - 创建 VoiceCloneProfile 实体(音色克隆档案) - 状态机: pending → processing → ready/failed → disabled - 支持重试机制(retry_count/max_retries) - 创建 VoiceCloneProfileRepository 端口接口 Task 3.03: TTSJob 领域模型 - 创建 TTSJob 实体(TTS 任务) - 关联 VoiceCloneProfile(voice_clone_profile_id) - 状态机: pending → processing → completed/failed → cancelled - 支持重试机制 - 创建 TTSJobRepository 端口接口 单元测试: - VoiceCloneProfile: 31 个测试用例 - TTSJob: 34 个测试用例 - 全部 65 个测试通过 遵循六边形架构: Domain → Port → Adapter
53 lines
1.7 KiB
Bash
Executable File
53 lines
1.7 KiB
Bash
Executable File
# 小虾 SaaS 环境变量配置
|
|
|
|
# ==================== 应用配置 ====================
|
|
APP_NAME=小虾 SaaS
|
|
APP_BASE_URL=http://localhost:3000
|
|
|
|
# ==================== 数据库配置 ====================
|
|
DATABASE_URL=postgresql://xiaoxia_user:your_password@localhost:5432/xiaoxia_saas
|
|
|
|
# 开发环境:使用内存数据库(不需要 PostgreSQL)
|
|
USE_IN_MEMORY_DB=true
|
|
|
|
# 生产环境:使用 PostgreSQL
|
|
# USE_IN_MEMORY_DB=false
|
|
|
|
# ==================== Redis 配置 ====================
|
|
REDIS_URL=redis://localhost:6379/0
|
|
|
|
# ==================== JWT 配置 ====================
|
|
JWT_SECRET_KEY=your-super-secret-key-change-this-in-production-min-32-chars
|
|
JWT_ALGORITHM=HS256
|
|
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30
|
|
JWT_REFRESH_TOKEN_EXPIRE_DAYS=30
|
|
|
|
# ==================== 邮件配置 ====================
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=your-email@gmail.com
|
|
SMTP_PASSWORD=your-app-specific-password
|
|
SMTP_FROM_EMAIL=noreply@xiaoxia-saas.com
|
|
SMTP_FROM_NAME=小虾 SaaS
|
|
|
|
# ==================== 环境配置 ====================
|
|
ENVIRONMENT=development
|
|
DEBUG=true
|
|
|
|
# ==================== CORS 配置 ====================
|
|
CORS_ORIGINS=["http://localhost:3000","http://localhost:5173"]
|
|
|
|
# ==================== 阿里云 OSS 配置 ====================
|
|
OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
|
|
OSS_ACCESS_KEY_ID=your-access-key-id
|
|
OSS_ACCESS_KEY_SECRET=your-access-key-secret
|
|
OSS_BUCKET_NAME=xiaoxia-autocut
|
|
|
|
# ==================== CosyVoice 语音合成配置 ====================
|
|
COSYVOICE_API_KEY=your-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
|