Files
nxxmdata/backend/env.example
2025-09-12 20:08:42 +08:00

44 lines
842 B
Plaintext
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.

# 宁夏智慧养殖监管平台 - 环境变量配置示例
# 复制此文件为 .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=