Updated Configuring example (markdown)
@@ -34,7 +34,6 @@ tls:
|
||||
certificate:string # 证书 PEM 格式,或者 证书的路径
|
||||
private-key:string # 证书对应的私钥 PEM 格式,或者私钥路径
|
||||
|
||||
|
||||
external-controller:0.0.0.0:9093 # RESTful API 监听地址
|
||||
external-controller-tls:0.0.0.0:9443 # RESTful API HTTPS 监听地址,需要配置 tls 部分配置文件
|
||||
# secret:"123456" # `Authorization:Bearer ${secret}`
|
||||
@@ -44,7 +43,7 @@ external-ui:/path/to/ui/folder # 配置 WEB UI 目录,使用 http://{{external
|
||||
|
||||
# interface-name:en0 # 设置出口网卡
|
||||
|
||||
# global-client-fingerprint:全局TLS指纹,优先低于proxy内的 client-fingerprint
|
||||
# global-client-fingerprint: 全局 TLS 指纹,优先低于 proxy 内的 client-fingerprint
|
||||
# accepts "chrome","firefox","safari","ios","random","none" options.
|
||||
# Utls is currently support TLS transport in TCP/grpc/WS/HTTP for VLESS/Vmess and trojan.
|
||||
|
||||
@@ -203,18 +202,29 @@ dns:
|
||||
# - '*.lan'
|
||||
# - localhost.ptlogin2.qq.com
|
||||
|
||||
# 配置查询域名使用的 DNS 服务器
|
||||
nameserver-policy:
|
||||
# 'www.baidu.com':'114.114.114.114'
|
||||
# '+.internal.crop.com':'10.0.0.1'
|
||||
# nameserver-policy 可以使用 geosite 分流 DNS 解析。将国内域名指定为国内 DOH 进行解析,其余 DNS 使用境外 DOH google/cf 解析
|
||||
"geosite:cn":[https://doh.pub/dns-query,https://dns.alidns.com/dns-query]
|
||||
|
||||
# DNS 主要域名配置
|
||||
# 支持 UDP,TCP,DoT,DoH,DoQ
|
||||
# 这部分为主要 DNS 配置,影响所有直连,确保使用对大陆解析精准的 DNS
|
||||
nameserver:
|
||||
- 114.114.114.114 # default value
|
||||
- 8.8.8.8 # default value
|
||||
- tls://223.5.5.5:853 # DNS over TLS
|
||||
- https://doh.pub/dns-query # DNS over HTTPS
|
||||
- https://dns.alidns.com/dns-query#h3=true # 强制 HTTP/3,与 perfer-h3 无关,强制开启 DoH 的 HTTP/3 支持,若不支持将无法使用
|
||||
- https://mozilla.cloudflare-dns.com/dns-query#DNS&h3=true # 指定策略组和使用 HTTP/3
|
||||
- dhcp://en0 # dns from dhcp
|
||||
- quic://dns.adguard.com:784 # DNS over QUIC
|
||||
- https://dns.google/dns-query
|
||||
- https://dns.cloudflare.com/dns-query
|
||||
- https://doh.opendns.com/dns-query
|
||||
- https://doh.dns.sb/dns-query
|
||||
# - 114.114.114.114 # default value
|
||||
# - 8.8.8.8 # default value
|
||||
# - tls://223.5.5.5:853 # DNS over TLS
|
||||
# - https://doh.pub/dns-query # DNS over HTTPS
|
||||
# - https://dns.alidns.com/dns-query#h3=true # 强制 HTTP/3,与 perfer-h3 无关,强制开启 DoH 的 HTTP/3 支持,若不支持将无法使用
|
||||
# - https://mozilla.cloudflare-dns.com/dns-query#DNS&h3=true # 指定策略组和使用 HTTP/3
|
||||
# - dhcp://en0 # dns from dhcp
|
||||
# - quic://dns.adguard.com:784 # DNS over QUIC
|
||||
# - '8.8.8.8#en0' # 兼容指定 DNS 出口网卡
|
||||
|
||||
# 当配置 fallback 时,会查询 nameserver 中返回的 IP 是否为 CN,非必要配置
|
||||
@@ -245,12 +255,6 @@ dns:
|
||||
# - '+.facebook.com'
|
||||
# - '+.youtube.com'
|
||||
|
||||
# 配置查询域名使用的 DNS 服务器
|
||||
nameserver-policy:
|
||||
# 'www.baidu.com':'114.114.114.114'
|
||||
# '+.internal.crop.com':'10.0.0.1'
|
||||
"geosite:cn":"https://doh.pub/dns-query"
|
||||
"www.baidu.com":[https://doh.pub/dns-query,https://dns.alidns.com/dns-query]
|
||||
```
|
||||
|
||||
## Proxies
|
||||
@@ -527,8 +531,6 @@ proxies:
|
||||
# fingerprint:xxxx
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Hysteria
|
||||
```yaml
|
||||
- name:"hysteria"
|
||||
@@ -557,7 +559,6 @@ proxies:
|
||||
# fast-open:true # 支持 TCP 快速打开,默认为 false
|
||||
```
|
||||
|
||||
|
||||
### Tuic
|
||||
```yaml
|
||||
- name:tuic
|
||||
@@ -618,7 +619,6 @@ proxies:
|
||||
## Proxy-groups
|
||||
Active health detection `urltest / fallback` (based on tcp handshake, multiple failures within a limited time will actively trigger health detection to use the node)
|
||||
|
||||
|
||||
```yaml
|
||||
proxy-groups:
|
||||
# 代理链,若落地协议支持 UDP over TCP 则可支持 UDP
|
||||
|
||||
Reference in New Issue
Block a user