-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.example
More file actions
84 lines (68 loc) · 2.73 KB
/
.env.example
File metadata and controls
84 lines (68 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# ==================== 数据库 ====================
# Docker 模式下由 docker-compose.yml 覆盖
DATABASE_URL="mysql://root:flintstudio@localhost:3306/flintstudio"
# ==================== 存储 ====================
# local: 本地文件存储(默认)
# 可扩展 cos / s3 等
STORAGE_TYPE=local
# ==================== 认证 ====================
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=please-change-this-to-a-random-string
# ==================== 内部密钥 ====================
# ⚠️ 重要:生产环境必须修改这些默认值!
CRON_SECRET=please-change-this-cron-secret
INTERNAL_TASK_TOKEN=please-change-this-task-token
API_ENCRYPTION_KEY=please-change-this-encryption-key-32bytes!!
# ==================== Redis ====================
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_USERNAME=
REDIS_PASSWORD=
REDIS_TLS=
# ==================== Worker 配置 ====================
WATCHDOG_INTERVAL_MS=30000
TASK_HEARTBEAT_TIMEOUT_MS=90000
QUEUE_CONCURRENCY_IMAGE=4
QUEUE_CONCURRENCY_VIDEO=2
QUEUE_CONCURRENCY_VOICE=4
QUEUE_CONCURRENCY_TEXT=4
# ==================== 本地存储路径 ====================
# 配音与成片文件存放目录(默认 ./data)
# DATA_DIR=./data
# ==================== 可选:默认 API(可全部在设置中心配置,此处仅作备用) ====================
# LLM(剧本分析等)
# LLM_BASE_URL=https://openrouter.ai/api/v1
# LLM_API_KEY=
# 图像生成(OpenAI 兼容)
# IMAGE_BASE_URL=
# IMAGE_API_KEY=
# 语音合成
# TTS_BASE_URL=
# TTS_API_KEY=
# 视频生成
# VIDEO_BASE_URL=
# VIDEO_API_KEY=
# ==================== API 中转服务配置 / API Proxy Services ====================
# Comfly API (https://comfly.fun/)
# 支持 OpenAI、Claude、Gemini 等多模型统一接入
# COMFLY_BASE_URL=https://api.comfly.fun/v1
# COMFLY_API_KEY=your-comfly-api-key
# 云雾 API (https://yunwu.ai/)
# 国内稳定的中转服务,支持 OpenAI 全系列模型
# YUNWU_BASE_URL=https://api.yunwu.ai/v1
# YUNWU_API_KEY=your-yunwu-api-key
# 在 FlintStudio 设置页面中,可以将上述地址填入 Base URL 使用
# In FlintStudio settings, enter these URLs as Base URL
# ==================== 本地模型配置 / Local Model Configuration ====================
# Ollama 本地大模型 (https://ollama.com/)
# 支持 llama3.2, qwen2.5, deepseek 等模型
# OLLAMA_ENABLED=true
# OLLAMA_BASE_URL=http://localhost:11434
# OLLAMA_MODEL=llama3.2
# ComfyUI 本地图像生成 (https://github.com/comfyanonymous/ComfyUI)
# 支持 Stable Diffusion 本地模型
# COMFYUI_ENABLED=true
# COMFYUI_BASE_URL=http://localhost:8188
# COMFYUI_CHECKPOINT=sd_xl_base_1.0.safetensors
# 本地模型优先级高于云端 API,启用后将优先使用本地模型
# Local models take priority over cloud APIs when enabled