Update proxy demo

pull/594/head
jhengazuki 5 months ago
parent c0da45b176
commit a13897fdcb
  1. 15
      README.md
  2. 14
      other/sample/config.json

@ -156,28 +156,29 @@ scheme://username:password@host:port
```
配置新增 proxy 可指定代理
靠前的 host 匹配到則使用該代理
```json
{
"spider": "",
"proxy": [
{
"name": "全局",
"name": "自訂",
"hosts": [
".*."
"googlevideo.com",
"raw.githubusercontent.com"
],
"urls": [
"socks5://127.0.0.1:7891"
"http://127.0.0.1:7890"
]
},
{
"name": "自訂",
"name": "全局",
"hosts": [
"googlevideo.com",
"raw.githubusercontent.com"
".*."
],
"urls": [
"http://127.0.0.1:7890"
"socks5://127.0.0.1:7891"
]
}
]

@ -36,22 +36,22 @@
],
"proxy": [
{
"name": "全局",
"name": "自訂",
"hosts": [
".*."
"googlevideo.com",
"raw.githubusercontent.com"
],
"urls": [
"socks5://127.0.0.1:7891"
"http://127.0.0.1:7890"
]
},
{
"name": "自訂",
"name": "全局",
"hosts": [
"googlevideo.com",
"raw.githubusercontent.com"
".*."
],
"urls": [
"http://127.0.0.1:7890"
"socks5://127.0.0.1:7891"
]
}
],

Loading…
Cancel
Save