修改管理后台
This commit is contained in:
43
backend/env.example
Normal file
43
backend/env.example
Normal file
@@ -0,0 +1,43 @@
|
||||
# 宁夏智慧养殖监管平台 - 环境变量配置示例
|
||||
# 复制此文件为 .env 并填入实际配置
|
||||
|
||||
# 服务器配置
|
||||
PORT=5350
|
||||
NODE_ENV=development
|
||||
|
||||
# 数据库配置
|
||||
DB_DIALECT=mysql
|
||||
DB_HOST=192.168.0.240
|
||||
DB_PORT=3306
|
||||
DB_NAME=nxxmdata
|
||||
DB_USER=root
|
||||
DB_PASSWORD=aiot$Aiot123
|
||||
|
||||
# JWT配置
|
||||
JWT_SECRET=your_jwt_secret_key_here
|
||||
JWT_EXPIRES_IN=24h
|
||||
|
||||
# 百度地图API配置
|
||||
BAIDU_MAP_AK=your_baidu_map_api_key_here
|
||||
|
||||
# 日志配置
|
||||
LOG_LEVEL=info
|
||||
LOG_FILE=logs/app.log
|
||||
|
||||
# 跨域配置
|
||||
CORS_ORIGIN=http://localhost:5300
|
||||
|
||||
# 文件上传配置
|
||||
UPLOAD_PATH=uploads/
|
||||
MAX_FILE_SIZE=10485760
|
||||
|
||||
# 邮件配置(可选)
|
||||
SMTP_HOST=smtp.example.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=your_email@example.com
|
||||
SMTP_PASS=your_email_password
|
||||
|
||||
# Redis配置(可选)
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
Reference in New Issue
Block a user