-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy path.env.example
More file actions
62 lines (53 loc) · 1.9 KB
/
Copy path.env.example
File metadata and controls
62 lines (53 loc) · 1.9 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
# ===========================================
# Life-Kline 本地运行配置模板
# ===========================================
# 复制此文件为 .env 并填入你自己的配置
# ===========================================
# 站点基本配置 (Site Configuration)
# ===========================================
# 自定义你的站点名称和域名
SITE_NAME=人生K线
SITE_DOMAIN=localhost:5173
SITE_URL=http://localhost:5173
# ===========================================
# API Gateway Configuration
# ===========================================
# API 模式选择:
# - self: 使用自己的 AI API (自托管)
# - cloud: 使用官方 life-kline.com 云服务
API_MODE=self
# 自托管模式配置 (API_MODE=self 时必填)
# 支持 OpenAI 兼容的 API 接口
API_BASE_URL=https://api.openai.com/v1
API_KEY=your-api-key-here
DEFAULT_MODEL=gpt-4
# 官方云服务配置 (API_MODE=cloud 时必填)
# 在 https://life-kline.com 申请 API Key
CLOUD_API_KEY=your-cloud-api-key
CLOUD_API_ENDPOINT=https://api.life-kline.com/v1
# ===========================================
# Server Configuration
# ===========================================
PORT=3000
JWT_SECRET=please-change-to-a-random-string-at-least-32-chars
# ===========================================
# Points Configuration
# ===========================================
FREE_INIT_POINTS=1000
COST_PER_ANALYSIS=50
# ===========================================
# Admin Configuration
# ===========================================
ADMIN_VOUCHER_PASSWORD=change-this-to-secure-password
# ===========================================
# Email Configuration (可选)
# ===========================================
# 不配置则邮件功能不可用
# MAIL_SMTP_HOST=smtp.example.com
# MAIL_SMTP_PORT=587
# MAIL_SMTP_SECURE=true
# MAIL_FROM=noreply@example.com
# MAIL_PASSWORD=your-mail-password
# Email Reward Configuration
EMAIL_BINDING_REWARD=1000
EMAIL_SUBSCRIPTION_REWARD=1000