fix(config): set ClickHouse to disabled by default and update related documentation

This commit is contained in:
ryan
2026-08-09 08:54:26 +08:00
parent e8c414aa12
commit 9df2437e47
6 changed files with 44 additions and 7 deletions
+2 -3
View File
@@ -130,9 +130,8 @@ func applyClickHouseDefaults(c *configModel) {
}
// Keep Enabled=true from env and continue applying host/pool defaults.
}
if !c.ClickHouse.Enabled {
c.ClickHouse.Enabled = true
}
// 未显式启用(缺省或 enabled: false)时保持关闭,不再强制打开;
// 显式启用后补齐连接默认参数。
if c.ClickHouse.Database == "" {
c.ClickHouse.Database = "openflare"
}