46 lines
896 B
Bash
46 lines
896 B
Bash
# 应用配置
|
||
NODE_ENV=development
|
||
PORT=3200
|
||
JWT_SECRET=your-super-secret-jwt-key-change-in-production
|
||
|
||
# 数据库配置
|
||
DB_HOST=129.211.213.226
|
||
DB_PORT=9527
|
||
DB_USER=root
|
||
DB_PASSWORD=aiotAiot123!
|
||
DB_NAME=ajhdata
|
||
DB_CHARSET=utf8mb4
|
||
|
||
# 连接池配置
|
||
DB_CONNECTION_LIMIT=10
|
||
DB_QUEUE_LIMIT=0
|
||
|
||
# 文件上传配置
|
||
MAX_FILE_SIZE=10485760
|
||
UPLOAD_PATH=./uploads
|
||
|
||
# CORS配置
|
||
CORS_ORIGIN=http://localhost:9000,http://127.0.0.1:9000
|
||
|
||
# 日志配置
|
||
LOG_LEVEL=info
|
||
LOG_FILE=./logs/app.log
|
||
|
||
# Redis配置(可选)
|
||
REDIS_HOST=localhost
|
||
REDIS_PORT=6379
|
||
REDIS_PASSWORD=
|
||
|
||
# 邮件配置(可选)
|
||
SMTP_HOST=smtp.gmail.com
|
||
SMTP_PORT=587
|
||
SMTP_USER=your-email@gmail.com
|
||
SMTP_PASS=your-app-password
|
||
|
||
# AI服务配置(花卉识别)
|
||
AI_SERVICE_ENDPOINT=https://api.plant.id/v2/identify
|
||
AI_SERVICE_KEY=your-plant-id-api-key
|
||
|
||
# 微信小程序配置
|
||
WX_APPID=your-wechat-appid
|
||
WX_SECRET=your-wechat-secret |