更新项目文件结构,统一文档风格
This commit is contained in:
37
backend/database/.env
Normal file
37
backend/database/.env
Normal file
@@ -0,0 +1,37 @@
|
||||
# 服务器配置
|
||||
PORT=8888
|
||||
NODE_ENV=development
|
||||
|
||||
# 数据库配置
|
||||
DB_HOST=nj-cdb-3pwh2kz1.sql.tencentcdb.com
|
||||
DB_PORT=20784
|
||||
DB_USER=xymg
|
||||
DB_PASSWORD=aiot741$xymg
|
||||
DB_NAME=xumgdata
|
||||
DB_CHARSET=utf8mb4
|
||||
|
||||
# Redis配置 (待配置)
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# JWT配置
|
||||
JWT_SECRET=xlxumu_jwt_secret_key_2024
|
||||
JWT_EXPIRES_IN=24h
|
||||
|
||||
# 腾讯云对象存储配置 (待配置)
|
||||
COS_SECRET_ID=
|
||||
COS_SECRET_KEY=
|
||||
COS_BUCKET=
|
||||
COS_REGION=
|
||||
|
||||
# 日志配置
|
||||
LOG_LEVEL=info
|
||||
LOG_FILE=./logs/app.log
|
||||
|
||||
# 安全配置
|
||||
RATE_LIMIT_MAX=100
|
||||
RATE_LIMIT_WINDOW=15
|
||||
|
||||
# WebSocket配置
|
||||
WS_PORT=8001
|
||||
Reference in New Issue
Block a user