# health-monitor.env — QQ 邮箱 SMTP + push 推送凭证 # # ⚠️ 必须 chmod 600,只能 root 读写 # ⚠️ 不要 commit 到 git(.gitignore 已忽略 *.env) # # 获取 QQ 邮箱授权码: # 1. 网页登录 https://mail.qq.com # 2. 设置 → 账户 → POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务 # 3. 开启 SMTP 服务(手机短信验证) # 4. 复制"授权码"(16 位字符串,**不是你的 QQ 密码**) QQ_USER=f1f3@qq.com QQ_AUTH_CODE=把你的QQ授权码填这里 # Push 推送通道(push.rrbrr.com,admin 在 H5 订 monitor channel 后能收到) PUSH_ENABLED=true PUSH_API_URL=https://push.rrbrr.com PUSH_API_KEY=monitor-api-key-001 PUSH_USER_ID=admin PUSH_CHANNEL=monitor # 可选:覆盖默认(一般不用改) # HEALTH_URL=http://127.0.0.1:3100/health # API_URL=http://127.0.0.1:3100/api/navigation/config # SMTP_HOST=smtp.qq.com # SMTP_PORT=465 # MAIL_FROM=$QQ_USER # CONSEC_FAIL_THRESHOLD=2 # ALERT_COOLDOWN_SEC=1800