feat: 支持 MySQL 公网 TLS CA 校验 (#86)

This commit is contained in:
chengma
2026-08-10 09:59:09 +08:00
parent 830ca58030
commit f0715ee273
10 changed files with 354 additions and 22 deletions
+5
View File
@@ -25,6 +25,11 @@ database:
name: autobuy
user: buy
# 本机/SSH 隧道使用 disabled。公网直连必须使用 verify_ca,加载服务器公开 CA,
# 强制 TLS 1.2+ 并验证证书链,连接失败时不会退回明文。
tls_mode: disabled
tls_ca: certs/mysql84-ca.pem
# `[必须]` 数据库密码也是明文配置,必须加引号;config.yaml 只能留在
# 运行机器上,不得提交、打包、截图或粘贴到工单和日志。
password: "你的 MySQL 密码"