-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.example
More file actions
35 lines (27 loc) · 1.23 KB
/
Copy path.env.example
File metadata and controls
35 lines (27 loc) · 1.23 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
# MongoDB数据库
# 格式: mongodb://username:password@localhost:27017/database?authSource=database
MONGODB_URI=mongodb://gamedevmap_user:your_password@localhost:27017/gamedevmap?authSource=gamedevmap
# JWT Secret (用这个生成: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")
JWT_SECRET=your_random_secret_key_change_me_in_production
# AMap API
AMAP_KEY=5cb8fcdd6990f463d15a601676fdb6d5
# 服务器信息
PORT=3001
NODE_ENV=development
# 默认管理员凭证
DEFAULT_ADMIN_USERNAME=admin
DEFAULT_ADMIN_PASSWORD=changeme123
DEFAULT_ADMIN_EMAIL=admin@gamedevmap.com
# Optional: Email Notifications (如果启用邮件功能(还没实现))
# SMTP_HOST=smtp.qq.com
# SMTP_PORT=465
# SMTP_USER=your_email@qq.com
# SMTP_PASS=your_smtp_auth_code
# Optional: Error Monitoring (Sentry)
# SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
# Optional: Admin IP Whitelist (comma-separated)
# ADMIN_IP_WHITELIST=192.168.1.100,10.0.0.50
# Optional: Enable Git Operations (allow admins to execute git commands from web interface)
# 启用 Git 操作允许管理员从 web 界面执行 Git 命令(pull/push)
# 仅当用户具有 admin 角色且此环境变量设置为 'true' 时才启用
# ENABLE_GIT_OPERATIONS=false