feat(confs): 统一配置服务(pymsg/TCP :8010)
- confs.py 重写为统一配置服务:get/list/reload/health 路由, 内存缓存 + mtime 自动重载,路径遍历防护,ini/json 按键提取 - 复制 log_client.py,新增 configs/example.ini 示例配置 - 注册到 core/init.txt(db 之后启动)与 _inst.sh 安装序列
This commit is contained in:
1 parent
ae92a6edde
commit
55fbe2f1f1
6 files changed
+448
-124
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# 示例配置 —— 统一配置服务 confs 的配置文件存放目录
|
||||
# 各微服务的配置文件集中放在本目录,由 confs 通过 pymsg get 路由分发给内部服务。
|
||||
# 支持类型:.ini / .conf / .cfg / .json / .yaml / .yml / .toml / .txt
|
||||
|
||||
[Server]
|
||||
address = 127.0.0.1
|
||||
port = 8010
|
||||
|
||||
[Feature]
|
||||
dark_mode = on
|
||||
Reference in new issue
Block a user