Files
xlxumu/backend/api/.env

40 lines
714 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 服务器配置
PORT=8889
NODE_ENV=development
# 数据库配置 - 开发环境使用SQLite
DB_TYPE=sqlite
DB_PATH=./database/xlxumu_dev.db
# 生产环境MySQL配置备用
# 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