Skip to content

Commit

Permalink
更新代理提供商
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Dec 25, 2024
1 parent a5ca6ed commit 4b15061
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 21 deletions.
25 changes: 14 additions & 11 deletions docs/config/proxy-providers/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,22 @@ proxy-providers:
filter: "(?i)港|hk|hongkong|hong kong"
exclude-filter: "xxx"
exclude-type: "ss|http"
provider2:
type: file
path: ./proxy_providers/provider2.yaml
health-check:
enable: true
url: https://www.gstatic.com/generate_204
interval: 300
payload:
- name: "ss1"
type: ss
server: server
port: 443
cipher: chacha20-ietf-poly1305
password: "password"
```

## Name

This is required, such as `provider1`, and must be unique. It is advisable not to duplicate names with [policy groups](../proxy-groups/index.md#name).
Required, such as `provider1`, must be unique. It is advisable not to duplicate names with [policy groups](../proxy-groups/index.md#name).

## Type

This is required, the `provider` type, with options of `http/file`.
Required, `provider` type, options are `http` / `file` / `inline`.

## URL

Expand Down Expand Up @@ -176,4 +175,8 @@ Exclude nodes that meet keywords or [regular expressions](https://github.com/zii

Regular expressions are not supported; use `|` to separate and exclude based on node type.

The `exclude-type` of the provider uses the `type` from the configuration file for exclusion
The `exclude-type` of the provider uses the `type` from the configuration file for exclusion

## payload

Content, only effective when `type` is `inline`
23 changes: 13 additions & 10 deletions docs/config/proxy-providers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,22 @@ proxy-providers:
filter: "(?i)港|hk|hongkong|hong kong"
exclude-filter: "xxx"
exclude-type: "ss|http"
provider2:
type: file
path: ./proxy_providers/provider2.yaml
health-check:
enable: true
url: https://www.gstatic.com/generate_204
interval: 300
payload:
- name: "ss1"
type: ss
server: server
port: 443
cipher: chacha20-ietf-poly1305
password: "password"
```

## name

必须,如`provider1`,不能重复,建议不要和[策略组](../proxy-groups/index.md#name)名称重复
必须,如`provider1`不能重复,建议不要和[策略组](../proxy-groups/index.md#name)名称重复

## type

必须,`provider`类型,可选`http/file`
必须,`provider`类型,可选`http` / `file` / `inline`

## url

Expand Down Expand Up @@ -177,3 +176,7 @@ proxy-providers:
不支持正则表达式,通过 `|` 分割,根据节点类型排除

provider 的 `exclude-type` 使用配置文件中的 `type` 类型进行排除

## payload

内容,仅 `type``inline` 时生效

0 comments on commit 4b15061

Please sign in to comment.