Files
PingWatch/backend/.env.example
T
v6ole 848f804169 PingWatch 网络设备离线监控系统
- FastAPI 后端 + Vue 3 前端
- Docker Compose 一键部署
- Casdoor OAuth 认证集成
- LogHive 集中式日志
- 设备批量 CSV 导入/导出
- WebSocket 实时状态推送
- 企业微信告警通知
- fping 高性能并发 Ping 检测

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 15:02:04 +08:00

36 lines
930 B
Bash
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.
# 数据库(开发用 SQLite,生产用 PostgreSQL
DATABASE_URL=sqlite+aiosqlite:///./pingwatch.db
# DATABASE_URL=postgresql+asyncpg://user:pass@localhost/pingwatch
# 企业微信
WECOM_CORP_ID=your_corp_id
WECOM_AGENT_ID=1000001
WECOM_APP_SECRET=your_app_secret
# Casdoor
CASDOOR_ENDPOINT=https://casdoor.dhdx.fun
CASDOOR_CLIENT_ID=e46b9e1eb893027bdf2a
CASDOOR_CLIENT_SECRET=b12c7e1688ed51481f3b5c5dae4191b6edbba916
CASDOOR_CERTIFICATE=
CASDOOR_ORGANIZATION=dahua
CASDOOR_APPLICATION=PingWatch
CASDOOR_REDIRECT_URI=http://10.10.10.7:5173/login
# Ping 引擎
PING_INTERVAL_SECONDS=30
PING_TIMEOUT_SECONDS=5.0
DEFAULT_ALERT_THRESHOLD=5
PING_CONCURRENCY=50
# 上游心跳
UPSTREAM_PING_TARGET=114.114.114.114
UPSTREAM_PING_THRESHOLD=2
OFFLINE_SUPPRESS_RATIO=0.9
# 数据保留
PING_RECORD_RETENTION_DAYS=90
ALERT_RETENTION_DAYS=365
# JWT 密钥(请改成随机字符串)
SECRET_KEY=change-me-to-a-long-random-string