Files
iot-device-management-service/.env.example
16337 9f4cea0810 feat(aiot): 边缘告警HTTP上报 + 移除配置中转层
- 新增 edge/report 端点接收边缘端HTTP告警上报
- alarm_event_service 新增 create_from_edge_report 幂等创建
- schemas 新增 EdgeAlarmReport 模型
- 移除 config_service/redis_service/yudao_aiot_config 配置中转
- MQTT 服务标记废弃,告警上报改为HTTP+COS
- config 新增 COS/Redis 配置项
- requirements 新增 redis 依赖

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 15:22:01 +08:00

34 lines
744 B
Plaintext
Raw Permalink 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.

# 数据库配置
DATABASE_URL=sqlite:///./data/alert_platform.db
# 腾讯云 COS 存储配置
COS_ENABLED=false
COS_SECRET_ID=your_secret_id
COS_SECRET_KEY=your_secret_key
COS_REGION=ap-beijing
COS_BUCKET=your-bucket-1250000000
COS_UPLOAD_PREFIX=alerts
COS_PRESIGN_EXPIRE=1800
COS_STS_EXPIRE=1800
# 应用配置
APP_HOST=0.0.0.0
APP_PORT=8000
DEBUG=true
DEV_MODE=true
# 大模型配置(可选)
AI_MODEL_ENDPOINT=http://localhost:8001
AI_MODEL_API_KEY=your_api_key
# Redis 配置(配置下发三层权威模型 - 云端层)
REDIS_ENABLED=true
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
REDIS_MAX_CONNECTIONS=50
# 边缘设备认证 Token边缘端上报告警时使用
# EDGE_TOKEN=your_edge_device_token