# health-monitor.env — QQ 邮箱 SMTP 凭证 # # ⚠️ 必须 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授权码填这里 # 可选:覆盖默认(一般不用改) # 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