rule重构
This commit is contained in:
18
README.md
18
README.md
@@ -40,6 +40,11 @@ sub-provider/
|
||||
rules.py
|
||||
subscriptions.py
|
||||
config/
|
||||
app.yaml
|
||||
clients.yaml
|
||||
policy-groups.yaml
|
||||
regions.yaml
|
||||
rules.yaml
|
||||
sources.yaml
|
||||
rules/
|
||||
reject.yaml
|
||||
@@ -73,13 +78,22 @@ cp .env.example .env
|
||||
- 也可以直接填本地文件路径,例如 `/app/data/sources/airport-b.txt` 或 `file:///app/data/sources/airport-b.txt`
|
||||
- 允许把其中一个留空;留空时这个机场会自动跳过
|
||||
|
||||
3. 启动:
|
||||
3. 按需调整 `config/` 下拆分后的配置文件:
|
||||
|
||||
- `app.yaml`:公共访问路径
|
||||
- `sources.yaml`:机场源配置
|
||||
- `regions.yaml`:地区自动组
|
||||
- `policy-groups.yaml`:选择器组和业务策略组
|
||||
- `rules.yaml`:规则绑定
|
||||
- `clients.yaml`:客户端模板
|
||||
|
||||
4. 启动:
|
||||
|
||||
```bash
|
||||
docker compose up -d --build
|
||||
```
|
||||
|
||||
4. 访问检查:
|
||||
5. 访问检查:
|
||||
|
||||
- 健康检查:`http://YOUR_HOST:18080/healthz`
|
||||
- 单 provider:
|
||||
|
||||
Reference in New Issue
Block a user