refactor: 迁移 gateway.ini 至 core/configs/,删除已废弃的 confs 和 confs2 模块
- gateway.ini 从 confs/configs/ 迁入 core/configs/(真实目录替代符号链接) - core/_set.sh 移除创建符号链接逻辑 - core/.gitignore 移除 configs 条目 - 删除 confs(Python)和 confs2(C++20 归档),配置分发已内嵌于 core - 更新 gateway/README.md 配置文件路径
This commit is contained in:
1 parent
cca0cdff5f
commit
bcd63e4fde
18 files changed
+1
-1470
No files matched your search
@@ -130,6 +130,3 @@ go.sum
|
||||
# VS
|
||||
x64
|
||||
.vs
|
||||
|
||||
# configs 符号链接(由 _set.sh 创建,指向 ../confs/configs/,内嵌 confs 服务使用)
|
||||
configs
|
||||
@@ -4,13 +4,4 @@ cd "$(dirname "$0")" || exit
|
||||
|
||||
make clear && make $@
|
||||
|
||||
# 创建 configs 符号链接(指向 ../confs/configs/,内嵌 confs 服务配置文件零迁移)
|
||||
if [ -L configs ] && [ ! -e configs ]; then
|
||||
rm -f configs
|
||||
fi
|
||||
if [ ! -e configs ]; then
|
||||
ln -s ../confs/configs configs
|
||||
echo "[core] 已创建 configs → ../confs/configs 符号链接"
|
||||
fi
|
||||
|
||||
make install
|
||||
@@ -0,0 +1,20 @@
|
||||
[Server]
|
||||
# v0.9.0:认证独立化(waf → ca → gateway 前置拓扑)
|
||||
# gateway 退化为纯转发服务,仅 loopback 监听(启动强制自检,非 loopback 拒绝启动):
|
||||
# - 8443 由 ca 接管(WAF upstream 不变),gateway 退居 8445
|
||||
# - 认证/验签/限流/WS 代理鉴权已全部迁至 ca(confs/configs/ca.ini)
|
||||
# - tls = off 启用 HTTP 模式(ca 前置后的内部链路)
|
||||
address = 127.0.0.1
|
||||
port = 8445
|
||||
tls = off
|
||||
|
||||
[Proxy]
|
||||
default = http://127.0.0.1:9200
|
||||
closed = http://127.0.0.1:8005;http://127.0.0.1:8007;
|
||||
opened = http://127.0.0.1:9200;http://127.0.0.1:8006;http://127.0.0.1:5200;
|
||||
|
||||
[Downstream]
|
||||
# 日志推送端点(db pymsg 服务)
|
||||
# 环境变量可覆盖:DB_HOST/DB_PORT, CONFS_HOST/CONFS_PORT
|
||||
db_host = 127.0.0.1
|
||||
db_port = 8005
|
||||
Reference in new issue
Block a user