-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
39 lines (31 loc) · 1.01 KB
/
Copy path.env.example
File metadata and controls
39 lines (31 loc) · 1.01 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
# 数据库配置
# SQLite(默认):file:./dev.db
# PostgreSQL:postgresql://user:password@localhost:5432/mydb?schema=public
# MySQL:mysql://user:password@localhost:3306/mydb
DATABASE_URL="file:./dev.db"
JWT_SECRET="your-super-secret-jwt-key-change-in-production"
ENCRYPTION_KEY="your-32-character-encryption-key"
# SMTP 服务配置
SMTP_PORT=2525
SMTP_HOST=0.0.0.0
# SMTP 发送超时配置(秒)
# connectionTimeout: TCP 连接 + SMTP 握手超时,默认 60 秒
# socketTimeout: 数据传输空闲超时,大附件建议 120 秒或更长
SMTP_CONNECTION_TIMEOUT=60
SMTP_SOCKET_TIMEOUT=120
# TLS 证书配置
TLS_CERT_PATH=
TLS_KEY_PATH=
# 管理员用户
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin123
# 用户可以创建最多 API 密钥数
MAX_API_KEYS_PER_USER=10
# API 请求最大上传大小(MB),默认 50
MAX_UPLOAD_SIZE=50
# 站点 SMTP 发信配置(用于发送验证码、密码重置等系统邮件)
SITE_SMTP_HOST=
SITE_SMTP_PORT=465
SITE_SMTP_USER=
SITE_SMTP_PASSWORD=
SITE_SMTP_FROM=