Add mihomo support
This commit is contained in:
parent
58fbb3dd55
commit
1d946ea8fd
3 changed files with 56 additions and 2 deletions
34
README.md
34
README.md
|
|
@ -8,14 +8,16 @@
|
|||
.
|
||||
├── LICENSE
|
||||
├── README.md
|
||||
├── mihomo/ # mihomo 配置片段与规则集(暂为空)
|
||||
├── mihomo/
|
||||
│ └── ai/
|
||||
│ └── claude.yaml # Claude / Anthropic 域名规则集(mihomo rule-provider)
|
||||
└── surge/
|
||||
└── ai/
|
||||
└── claude.conf # Claude / Anthropic 相关域名规则集
|
||||
```
|
||||
|
||||
- `surge/`:Surge 规则集、模块(`.sgmodule`)及配置片段
|
||||
- `mihomo/`:mihomo 配置片段或规则集,目前为空目录(`.gitkeep` 占位)
|
||||
- `mihomo/`:mihomo 配置片段或规则集
|
||||
|
||||
## 订阅与使用
|
||||
|
||||
|
|
@ -30,6 +32,7 @@ https://git.bonitos.link/mes0/confs/raw/branch/main/<文件路径>
|
|||
| 文件 | 说明 | Raw 链接 |
|
||||
| --- | --- | --- |
|
||||
| `surge/ai/claude.conf` | Claude / Anthropic 域名规则(参考 [ip.net.coffee](https://ip.net.coffee/claude/site.html)) | `https://git.bonitos.link/mes0/confs/raw/branch/main/surge/ai/claude.conf` |
|
||||
| `mihomo/ai/claude.yaml` | 同上,mihomo rule-provider 格式(behavior: classical) | `https://git.bonitos.link/mes0/confs/raw/branch/main/mihomo/ai/claude.yaml` |
|
||||
|
||||
### Surge 引用示例
|
||||
|
||||
|
|
@ -40,6 +43,33 @@ RULE-SET,https://git.bonitos.link/mes0/confs/raw/branch/main/surge/ai/claude.con
|
|||
|
||||
> 将末尾的 `PROXY` 替换为你的策略组名称即可。
|
||||
|
||||
### mihomo 引用示例
|
||||
|
||||
```yaml
|
||||
rule-providers:
|
||||
claude:
|
||||
type: http
|
||||
behavior: classical
|
||||
format: yaml
|
||||
url: 'https://git.bonitos.link/mes0/confs/raw/branch/main/mihomo/ai/claude.yaml'
|
||||
path: ./ruleset/claude.yaml
|
||||
interval: 86400
|
||||
|
||||
rules:
|
||||
- RULE-SET,claude,PROXY
|
||||
```
|
||||
|
||||
> 将末尾的 `PROXY` 替换为你的策略组名称即可。
|
||||
|
||||
紧凑写法(YAML flow style,与上面等价):
|
||||
|
||||
```yaml
|
||||
rule-providers:
|
||||
claude: {type: http, behavior: classical, format: yaml, interval: 86400, url: "https://git.bonitos.link/mes0/confs/raw/branch/main/mihomo/ai/claude.yaml", path: ./ruleset/claude.yaml}
|
||||
```
|
||||
|
||||
如需让 mihomo 直连下载该规则集,可在对象中追加 `proxy: DIRECT`。
|
||||
|
||||
## 维护约定
|
||||
|
||||
- **不提交敏感信息**:本仓库只存放可公开订阅的规则和通用片段,不放节点信息、机场订阅链接、密钥或 Token。
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue