-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.env.example
More file actions
35 lines (29 loc) · 820 Bytes
/
Copy path.env.example
File metadata and controls
35 lines (29 loc) · 820 Bytes
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
# 基础配置
APP_ENV=development
CONTEXT_TIMEOUT=60
PORT=:55667
# 数据库配置
# DB_TYPE: sqlite (default) | postgres | mysql
DB_TYPE=sqlite
# DB_DSN examples:
# PostgreSQL: postgres://user:password@localhost:5432/dbname?sslmode=disable
# MySQL: user:password@tcp(localhost:3306)/dbname?parseTime=true&loc=Local&charset=utf8mb4
DB_DSN=
# 令牌配置
ACCESS_TOKEN_EXPIRY_MINUTE=180
REFRESH_TOKEN_EXPIRY_MINUTE=1440
ACCESS_TOKEN_SECRET=default-access-secret
REFRESH_TOKEN_SECRET=default-refresh-secret
# 管理员配置
ADMIN_USERNAME=admin
ADMIN_PASSWORD=123
ADMIN_EMAIL=admin@shadmin.com
# 存储配置
STORAGE_TYPE=disk
STORAGE_BASE_PATH=./uploads
# S3/MinIO 配置
S3_ADDRESS=192.168.x.x:9000
S3_ACCESS_KEY=xxxxxxxxxxxxx
S3_SECRET_KEY=oooooooooooooooooooooooooooooooooooooooooo
S3_BUCKET=shadmin
S3_TOKEN=