Configuration
The configuration of this program uses the YAML file format. The configuration file is config.yaml
, located in the root directory of the program. An example can be found at config.yaml. You can also use ./api -G default > config.yaml
to generate the default configuration file. If you need to use ZJU's configuration file, you can use ./api -G zju > config.yaml
to generate ZJU's configuration file.
Configuration Items
HEAD
: Configuration before the node information, such asyamlHEAD: mixed-port: 7890 allow-lan: true mode: rule log-level: info external-controller: :9090 dns: enable: true listen: 0.0.0.0:1053 default-nameserver: - 223.5.5.5 - 8.8.8.8 - 1.1.1.1 nameserver-policy: geosite:gfw,geolocation-!cn: - https://1.1.1.1/dns-query - https://1.0.0.1/dns-query - https://8.8.8.8/dns-query nameserver: - https://223.5.5.5/dns-query - https://1.12.12.12/dns-query - https://8.8.8.8/dns-query fallback: - https://1.1.1.1/dns-query - https://8.8.8.8/dns-query fallback-filter: geoip: false geoip-code: CN ipcidr: - 240.0.0.0/4 fake-ip-filter: - +.lan - +.microsoft*.com - localhost.ptlogin2.qq.com
TEST_URL
: The URL of the test node, such asyamlTEST_URL: https://www.gstatic.com/generate_204
RULESET
: Rule set, refer to Rule SetCUSTOM_PROXY_GROUP
Custom proxy group, refer to Proxy Groups