-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.env.example
More file actions
executable file
·71 lines (55 loc) · 2.29 KB
/
Copy path.env.example
File metadata and controls
executable file
·71 lines (55 loc) · 2.29 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
# ============================================================
# AI短剧创作平台 — Environment Variables
# Copy this file to .env and fill in your values
# ============================================================
# ---- Database ----
# Local development: SQLite
DATABASE_URL=file:./db/custom.db
DIRECT_URL=file:./db/custom.db
# Vercel deployment: PostgreSQL (auto-configured by Vercel Supabase integration)
# The following env vars are set automatically on Vercel:
# huobao_POSTGRES_URL
# huobao_POSTGRES_PRISMA_URL
# huobao_POSTGRES_URL_NON_POOLING
# huobao_POSTGRES_HOST / USER / PASSWORD / DATABASE
# ---- Authentication (REQUIRED!) ----
# Generate with: openssl rand -base64 32
# MUST be set for production deployments!
NEXTAUTH_SECRET=change-this-to-a-random-secret-in-production
# The public URL of your site (used for redirects)
# For Vercel: auto-detected from VERCEL_URL, no need to set
# For custom deployment: MUST set to your public URL
# Examples:
# NEXTAUTH_URL=http://localhost:3000 (local dev)
# NEXTAUTH_URL=https://your-domain.com (custom deployment)
NEXTAUTH_URL=http://localhost:3000
# Set to "true" to force secure cookies (for HTTPS deployments behind proxy)
# Auto-detected from NEXTAUTH_URL and VERCEL_URL
# NEXTAUTH_SECURE_COOKIES=true
# ---- Admin Account (optional) ----
# Used by build script and /api/auth/fix-admin to create admin user
# Defaults: admin@huobao.com / admin123
# ADMIN_EMAIL=admin@huobao.com
# ADMIN_PASSWORD=admin123
# ADMIN_NAME=管理员
# ---- AI Provider API Keys ----
# Configure these OR use the Settings page UI to configure providers
# The Settings page saves to database and takes priority over env vars
# NVIDIA NIM API (LLM + Image)
NVIDIA_API_KEY=nvapi-your-key-here
# OpenAI (LLM + Image + TTS)
OPENAI_API_KEY=sk-your-key-here
# DeepSeek (LLM)
DEEPSEEK_API_KEY=sk-your-key-here
# SiliconFlow (LLM + Image + Video)
SILICONFLOW_API_KEY=sk-your-key-here
# SenseNova 商汤日日新 (LLM — DeepSeek V4 Flash 限时免费)
SENSENOVA_KEY=your-key-here
# Stability AI (Image)
STABILITY_API_KEY=sk-your-key-here
# Volcengine / Kling (Video + TTS)
VOLCENGINE_API_KEY=your-key-here
# Fish Audio (TTS)
FISH_AUDIO_API_KEY=your-key-here
# Xiaomi MiMo 小米 (LLM + TTS — mimo-v2.5-pro 旗舰 / mimo-v2.5-tts 限时免费)
MIMO_API_KEY=tp-your-key-here