-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (34 loc) · 836 Bytes
/
.env.example
File metadata and controls
44 lines (34 loc) · 836 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
35
36
37
38
39
40
41
42
43
44
# KAS 后端服务器环境变量配置示例
# 复制此文件为 .env 并根据实际情况修改配置
# 服务器配置
PORT=8080
HOST=0.0.0.0
NODE_ENV=development
# 数据库配置
PGUSER=ZhonXu
PGHOST=127.0.0.1
PGDATABASE=KASDB
PGPASSWORD=iLOVEZX114514
PGPORT=5432
# 数据库连接池配置
DB_CONNECTION_TIMEOUT=10000
DB_IDLE_TIMEOUT=30000
DB_MAX_CONNECTIONS=20
# 跨域配置
CORS_ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost:3000
CORS_CREDENTIALS=true
# WebSocket配置
WS_PING_INTERVAL=30000
WS_MAX_CLIENTS=100
# 安全配置
JWT_SECRET=change-this-to-a-secure-random-string
SESSION_SECRET=change-this-to-another-secure-random-string
# 2FA配置
TOTP_WINDOW=1
TOTP_SECRET_LENGTH=32
# API配置
API_RATE_LIMIT=100
API_TIMEOUT=30000
# 日志配置
LOG_LEVEL=debug
LOG_FILE=logs/app.log