Updated Configuring example (markdown)

Larvan2
2023-02-12 15:01:26 +08:00
parent 2bbb7a66ea
commit 351e931d26

@@ -34,7 +34,6 @@ tls:
certificate:string # 证书 PEM 格式,或者 证书的路径 certificate:string # 证书 PEM 格式,或者 证书的路径
private-key:string # 证书对应的私钥 PEM 格式,或者私钥路径 private-key:string # 证书对应的私钥 PEM 格式,或者私钥路径
external-controller:0.0.0.0:9093 # RESTful API 监听地址 external-controller:0.0.0.0:9093 # RESTful API 监听地址
external-controller-tls:0.0.0.0:9443 # RESTful API HTTPS 监听地址,需要配置 tls 部分配置文件 external-controller-tls:0.0.0.0:9443 # RESTful API HTTPS 监听地址,需要配置 tls 部分配置文件
# secret:"123456" # `Authorization:Bearer ${secret}` # secret:"123456" # `Authorization:Bearer ${secret}`
@@ -44,7 +43,7 @@ external-ui:/path/to/ui/folder # 配置 WEB UI 目录,使用 http://{{external
# interface-name:en0 # 设置出口网卡 # 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. # accepts "chrome","firefox","safari","ios","random","none" options.
# Utls is currently support TLS transport in TCP/grpc/WS/HTTP for VLESS/Vmess and trojan. # Utls is currently support TLS transport in TCP/grpc/WS/HTTP for VLESS/Vmess and trojan.
@@ -203,18 +202,29 @@ dns:
# - '*.lan' # - '*.lan'
# - localhost.ptlogin2.qq.com # - 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 主要域名配置 # DNS 主要域名配置
# 支持 UDPTCPDoTDoHDoQ # 支持 UDPTCPDoTDoHDoQ
# 这部分为主要 DNS 配置,影响所有直连,确保使用对大陆解析精准的 DNS # 这部分为主要 DNS 配置,影响所有直连,确保使用对大陆解析精准的 DNS
nameserver: nameserver:
- 114.114.114.114 # default value - https://dns.google/dns-query
- 8.8.8.8 # default value - https://dns.cloudflare.com/dns-query
- tls://223.5.5.5:853 # DNS over TLS - https://doh.opendns.com/dns-query
- https://doh.pub/dns-query # DNS over HTTPS - https://doh.dns.sb/dns-query
- https://dns.alidns.com/dns-query#h3=true # 强制 HTTP/3与 perfer-h3 无关,强制开启 DoH 的 HTTP/3 支持,若不支持将无法使用 # - 114.114.114.114 # default value
- https://mozilla.cloudflare-dns.com/dns-query#DNS&h3=true # 指定策略组和使用 HTTP/3 # - 8.8.8.8 # default value
- dhcp://en0 # dns from dhcp # - tls://223.5.5.5:853 # DNS over TLS
- quic://dns.adguard.com:784 # DNS over QUIC # - 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 出口网卡 # - '8.8.8.8#en0' # 兼容指定 DNS 出口网卡
# 当配置 fallback 时,会查询 nameserver 中返回的 IP 是否为 CN非必要配置 # 当配置 fallback 时,会查询 nameserver 中返回的 IP 是否为 CN非必要配置
@@ -245,12 +255,6 @@ dns:
# - '+.facebook.com' # - '+.facebook.com'
# - '+.youtube.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 ## Proxies
@@ -527,8 +531,6 @@ proxies:
# fingerprint:xxxx # fingerprint:xxxx
``` ```
### Hysteria ### Hysteria
```yaml ```yaml
- name:"hysteria" - name:"hysteria"
@@ -557,7 +559,6 @@ proxies:
# fast-open:true # 支持 TCP 快速打开,默认为 false # fast-open:true # 支持 TCP 快速打开,默认为 false
``` ```
### Tuic ### Tuic
```yaml ```yaml
- name:tuic - name:tuic
@@ -618,7 +619,6 @@ proxies:
## Proxy-groups ## 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) 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 ```yaml
proxy-groups: proxy-groups:
# 代理链,若落地协议支持 UDP over TCP 则可支持 UDP # 代理链,若落地协议支持 UDP over TCP 则可支持 UDP