- 配置加载从三层(默认值→confs→环境变量)改为两层(confs 强依赖→环境变量覆盖) - confs 连接失败直接 sys.exit(1),不再静默使用内置默认值 - _dnfs_config 初始值改为空字符串白名单模板,移除内置默认值 - 新增配置完整性校验:confs 返回后检查所有必需 section/key 非空 - 区分错误类型:连接拒绝/RpcError/通用异常分别打印明确错误信息到 stderr - confs 连接地址改为引导配置(环境变量优先,默认 127.0.0.1:8010),移除 dnfs.ini 中 [confs] 段 - 启动顺序调整为 confs → db → dnfs → ai_review/...(dnfs 同时依赖 confs 和 db) - 更新 dnfs/README.md 与 confs/README.md 文档
13 lines
153 B
INI
13 lines
153 B
INI
[server]
|
|
host = 127.0.0.1
|
|
port = 8006
|
|
|
|
[database]
|
|
host = 127.0.0.1
|
|
port = 8005
|
|
timeout = 10
|
|
|
|
[ai_review]
|
|
url = http://127.0.0.1:8007/review
|
|
timeout = 10
|