-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
115 lines (99 loc) · 3.29 KB
/
.env.example
File metadata and controls
115 lines (99 loc) · 3.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# ============================================
# ITSM 系统环境变量配置
# ============================================
# 复制此文件为 .env 并根据实际情况修改配置
# cp .env.example .env
# ============================================
# --------------------------------------------
# 数据库配置
# --------------------------------------------
DB_HOST=localhost
DB_PORT=5432
DB_USER=itsm_user
DB_PASSWORD=dev123
DB_NAME=itsm
DB_SSLMODE=disable
# --------------------------------------------
# Redis 配置
# --------------------------------------------
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# --------------------------------------------
# JWT 认证配置
# --------------------------------------------
JWT_SECRET=your_jwt_secret_here_minimum_32_characters
JWT_EXPIRE_TIME=900 # 15分钟
JWT_REFRESH_EXPIRE_TIME=604800 # 7天
# --------------------------------------------
# 服务配置
# --------------------------------------------
SERVER_PORT=8090
SERVER_MODE=release # debug/release/test
GIN_MODE=release # gin 框架模式
# --------------------------------------------
# 日志配置
# --------------------------------------------
# 开发环境:debug/info,生产环境:error/warn
LOG_LEVEL=info # debug/info/warn/error (production: error)
LOG_PATH=./logs
# --------------------------------------------
# LLM 配置 (用于 AI 功能)
# --------------------------------------------
LLM_PROVIDER=openai # openai/azure/local
LLM_MODEL=gpt-4
OPENAI_API_KEY=sk-your-openai-api-key-here
LLM_ENDPOINT= # 留空使用默认 OpenAI 端点
# --------------------------------------------
# MinIO 对象存储配置
# --------------------------------------------
MINIO_ENDPOINT=http://minio:9000
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=your_minio_password_here
MINIO_PORT=9000
MINIO_CONSOLE_PORT=9001
# --------------------------------------------
# SMS 配置 (短信通知)
# --------------------------------------------
SMS_PROVIDER= # aliyun/tencent,留空禁用短信
# 阿里云短信配置
ALIYUN_ACCESS_KEY_ID=
ALIYUN_ACCESS_KEY_SECRET=
ALIYUN_SIGN_NAME=
ALIYUN_ENDPOINT=dysmsapi.aliyuncs.com
# 腾讯云短信配置
TENCENT_SECRET_ID=
TENCENT_SECRET_KEY=
TENCENT_APP_ID=
TENCENT_SIGN_NAME=
TENCENT_ENDPOINT=sms.tencentcloudapi.com
# --------------------------------------------
# Grafana 监控配置
# --------------------------------------------
GRAFANA_PASSWORD=your_grafana_password_here
# --------------------------------------------
# 前端配置
# --------------------------------------------
NEXT_PUBLIC_API_URL=http://localhost:8090
NODE_ENV=production
# --------------------------------------------
# 监控和告警配置
# --------------------------------------------
# SLA 检查间隔 (分钟)
SLA_CHECK_INTERVAL=5
# 升级检查间隔 (分钟)
ESCALATION_CHECK_INTERVAL=15
# --------------------------------------------
# 向量嵌入配置 (知识库 RAG)
# --------------------------------------------
EMBEDDING_PIPELINE_INTERVAL=15 # 分钟
EMBEDDING_BATCH_SIZE=50
EMBEDDING_FULL_PASS_SIZE=200
# --------------------------------------------
# 开发模式配置
# --------------------------------------------
# 是否启用 Swagger 文档
ENABLE_SWAGGER=true
# 是否启用 CORS
ENABLE_CORS=true