{ "log": { "level": "info" }, "dns": { "servers": [ { "type": "local", "tag": "default" } ] }, "inbounds": [ { "type": "mixed", "tag": "mixed-in", "listen_port": 7897 } ], "outbounds": [ { "type": "direct", "tag": "direct" }, // A "selector" group that pulls all of its members from the // outbound provider tagged "my-local". The provider parses the // file at "path" on every change (fswatch-based hot reload). { "type": "selector", "tag": "proxy", "outbounds": [ "direct" ], "providers": [ "my-local" ], "default": "direct", "interrupt_exist_connections": true } ], "providers": [ { "type": "local", "tag": "my-local", // Subscription file. Supported formats are auto-detected: // - sing-box JSON ({ "outbounds": [...] }) // - Clash YAML // - SIP008 (shadowsocks) // - Raw shareable links (vless://, vmess://, ss://, trojan://, ...) "path": "subscriptions/my-sub.txt", "health_check": { "enabled": true, "url": "https://www.gstatic.com/generate_204", "interval": "5m", "timeout": "5s" } } ], "route": { "final": "proxy", "default_domain_resolver": "default", "auto_detect_interface": true } }