-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker.env.example
More file actions
45 lines (36 loc) · 1.01 KB
/
docker.env.example
File metadata and controls
45 lines (36 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
40
41
42
43
44
45
# ========================================
# 学生任务管理系统 Docker 部署配置
# ========================================
# Docker 镜像配置
DOCKER_IMAGE=doramart/student-task:latest
# 应用基础配置
NODE_ENV=production
PORT=7801
APP_PORT=7801
# MongoDB 数据库配置
MONGO_ROOT_USERNAME=admin
MONGO_ROOT_PASSWORD=password123
MONGO_DATABASE=student_task_db
MONGO_PORT=27017
# 应用密钥配置(生产环境必须修改)
APP_KEYS=student-task_1694000000000_1000
JWT_SECRET=your-strong-jwt-secret-key-here
JWT_EXPIRES_IN=7d
JWT_ISSUER=student-task-system
# 邮件服务配置(可选)
MAIL_SERVICE=smtp.qq.com
MAIL_PORT=465
MAIL_USER=your_email@qq.com
MAIL_PASS=your_email_auth_code
MAIL_FROM=学生任务管理系统 <your_email@qq.com>
# 安全配置
CORS_ORIGIN=http://localhost:7801,http://127.0.0.1:7801
DOMAIN_WHITELIST=http://localhost:7801,http://127.0.0.1:7801
# 日志配置
LOG_LEVEL=INFO
LOG_DIR=logs
# 缓存配置
CACHE_TTL=3600
# Nginx 配置(可选)
NGINX_PORT=80
NGINX_SSL_PORT=443