Files
MHXY_Web/backend/.env.example
2025-12-22 23:51:21 +08:00

27 lines
508 B
Plaintext

# 服务器配置
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