# AI近视防控系统 - 环境配置示例

# 服务器配置
SERVER_PORT=8080
SERVER_HOST=localhost

# 数据库配置
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=rootpassword
DB_NAME=myopia_db
DB_CHARSET=utf8mb4

# Redis配置
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0

# JWT配置
JWT_SECRET=your-super-secret-jwt-key-here
JWT_EXPIRES_HOURS=168  # 7天

# 日志配置
LOG_LEVEL=info
LOG_FILE_PATH=./logs/app.log

# AI服务配置
AI_SERVICE_URL=http://localhost:8007
AI_SERVICE_TIMEOUT=30

# 设备通信配置
DEVICE_MQTT_BROKER=localhost:1883
DEVICE_MQTT_USERNAME=
DEVICE_MQTT_PASSWORD=

# 文件上传配置
UPLOAD_DIR=./uploads
MAX_UPLOAD_SIZE=10  # MB

# 邮件配置（用于通知）
EMAIL_SMTP_HOST=smtp.gmail.com
EMAIL_SMTP_PORT=587
EMAIL_SMTP_USERNAME=
EMAIL_SMTP_PASSWORD=
EMAIL_FROM_ADDRESS=

# 短信配置（用于通知）
SMS_API_KEY=
SMS_API_SECRET=
SMS_TEMPLATE_ID=

# 外部API配置
WECHAT_APP_ID=
WECHAT_APP_SECRET=