forked from GoSimplicity/VolcTrain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
131 lines (112 loc) · 3.2 KB
/
Copy path.env.example
File metadata and controls
131 lines (112 loc) · 3.2 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# =====================================
# 数据库配置 (MySQL)
# =====================================
# Docker容器配置
MYSQL_ROOT_PASSWORD=root
MYSQL_DATABASE=volctraindb
MYSQL_USER=root
MYSQL_PASSWORD=root
# 应用连接配置
DB_HOST=mysql
DB_PORT=3306
DB_NAME=volctraindb
DB_USER=root
DB_PASSWORD=root
# =====================================
# Redis配置
# =====================================
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=v6SxhWHyZC7S
REDIS_DB=0
# =====================================
# JWT认证配置
# =====================================
JWT_ACCESS_SECRET=your_jwt_access_secret_here_minimum_64_characters_required_for_security
JWT_REFRESH_SECRET=your_jwt_refresh_secret_here_minimum_64_characters_required_for_security
# =====================================
# 服务端口配置
# =====================================
API_PORT=8888
COMMON_PORT=8889
MONITORING_PORT=8890
TRAINING_PORT=8891
FRONTEND_PORT=80
# =====================================
# 监控配置
# =====================================
# Grafana配置
GRAFANA_PASSWORD=your_grafana_admin_password_here
# Prometheus配置
PROMETHEUS_PORT=9091
PROMETHEUS_URL=http://prometheus:9090
# 指标收集配置
METRICS_COLLECT_INTERVAL=30s
METRICS_PORT=9090
ENABLE_METRICS=true
ENABLE_ALERTS=true
ENABLE_NOTIFICATIONS=true
# =====================================
# 日志配置
# =====================================
LOG_LEVEL=info
LOG_MODE=console
SERVICE_NAME=volctrain
# =====================================
# 部署环境
# =====================================
DEPLOY_ENV=production
# DEPLOY_ENV=development
# =====================================
# Kubernetes配置
# =====================================
K8S_CONFIG_PATH=/path/to/kubeconfig
K8S_NAMESPACE=volctrain
K8S_CLUSTER_NAME=volctrain-cluster
# =====================================
# 存储配置
# =====================================
STORAGE_TYPE=local
STORAGE_PATH=/data/volctrain
CHECKPOINT_STORAGE_PATH=/data/volctrain/checkpoints
MODEL_STORAGE_PATH=/data/volctrain/models
LOG_STORAGE_PATH=/data/volctrain/logs
# =====================================
# 安全配置
# =====================================
# 数据加密密钥(32字符)
DATA_ENCRYPTION_KEY=your_32_character_encryption_key_here
# API限流配置
RATE_LIMIT_REQUESTS=1000
RATE_LIMIT_WINDOW=3600
# CORS配置
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:80,http://localhost:5173
# =====================================
# 通知配置
# =====================================
# 钉钉通知配置
DINGTALK_WEBHOOK_URL=https://oapi.dingtalk.com/robot/send?access_token=your_token
DINGTALK_SECRET=your_dingtalk_secret
# 邮件通知配置
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_app_password
EMAIL_FROM=your_email@gmail.com
# 短信通知配置
SMS_ACCESS_KEY=your_sms_access_key
SMS_SECRET_KEY=your_sms_secret_key
SMS_SIGN_NAME=your_sms_signature
# =====================================
# 调试和开发配置
# =====================================
# 开发模式配置
DEBUG=false
ENABLE_PPROF=false
PPROF_PORT=6060
# 测试环境配置
TEST_DB_HOST=localhost
TEST_DB_PORT=3306
TEST_DB_NAME=volctraindb_test
TEST_REDIS_HOST=localhost
TEST_REDIS_PORT=6379