项目初始化
This commit is contained in:
26
backend/.env.example
Normal file
26
backend/.env.example
Normal file
@@ -0,0 +1,26 @@
|
||||
# 服务器配置
|
||||
PORT=3000
|
||||
HOST=0.0.0.0
|
||||
|
||||
# 数据库配置
|
||||
DB_HOST=database
|
||||
DB_PORT=3306
|
||||
DB_NAME=mhxy_web
|
||||
DB_USER=root
|
||||
DB_PASSWORD=password
|
||||
|
||||
# JWT配置
|
||||
JWT_SECRET=your_jwt_secret_key_here
|
||||
JWT_EXPIRES_IN=24h
|
||||
JWT_REFRESH_SECRET=your_jwt_refresh_secret_key_here
|
||||
JWT_REFRESH_EXPIRES_IN=7d
|
||||
|
||||
# 游戏服务端API配置
|
||||
GAME_API_URL=http://your_game_server_url/tool/http
|
||||
GAME_PSK=THIS_IS_A_32_BYTE_FIXED_PSK!!!!! # 必须是32字节固定长度
|
||||
|
||||
# 日志配置
|
||||
LOG_LEVEL=info
|
||||
|
||||
# 环境配置
|
||||
NODE_ENV=production
|
||||
Reference in New Issue
Block a user