Organize templates into templates/ folder and update detectTemplates logic
This commit is contained in:
@@ -0,0 +1,580 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"type": "udp",
|
||||
"tag": "local-dns",
|
||||
"server": "223.5.5.5"
|
||||
},
|
||||
{
|
||||
"type": "udp",
|
||||
"tag": "local-dns-backup",
|
||||
"server": "119.29.29.29"
|
||||
},
|
||||
{
|
||||
"type": "https",
|
||||
"tag": "remote-dns",
|
||||
"server": "cloudflare-dns.com",
|
||||
"path": "/dns-query",
|
||||
"domain_resolver": "local-dns"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain": [
|
||||
"localhost"
|
||||
],
|
||||
"domain_suffix": [
|
||||
"local",
|
||||
"lan"
|
||||
],
|
||||
"action": "route",
|
||||
"server": "local-dns"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".cn",
|
||||
"12306.cn",
|
||||
"360.cn",
|
||||
"alicdn.com",
|
||||
"alipay.com",
|
||||
"aliyun.com",
|
||||
"amap.com",
|
||||
"baidu.com",
|
||||
"bdstatic.com",
|
||||
"bilibili.com",
|
||||
"biliapi.net",
|
||||
"bilivideo.com",
|
||||
"ctrip.com",
|
||||
"douban.com",
|
||||
"douyin.com",
|
||||
"edu.cn",
|
||||
"gov.cn",
|
||||
"iqiyi.com",
|
||||
"jd.com",
|
||||
"meituan.com",
|
||||
"mi.com",
|
||||
"netease.com",
|
||||
"qq.com",
|
||||
"sina.com.cn",
|
||||
"snssdk.com",
|
||||
"sohu.com",
|
||||
"taobao.com",
|
||||
"tencent.com",
|
||||
"tmall.com",
|
||||
"weibo.com",
|
||||
"weixin.qq.com",
|
||||
"xiaomi.com",
|
||||
"youku.com",
|
||||
"zhihu.com"
|
||||
],
|
||||
"action": "route",
|
||||
"server": "local-dns"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
"ai.com",
|
||||
"ai.google.dev",
|
||||
"aistudio.google.com",
|
||||
"anthropic.com",
|
||||
"chatgpt.com",
|
||||
"claude.ai",
|
||||
"claudeusercontent.com",
|
||||
"gemini.google.com",
|
||||
"generativelanguage.googleapis.com",
|
||||
"makersuite.google.com",
|
||||
"notebooklm.google.com",
|
||||
"oaistatic.com",
|
||||
"oaiusercontent.com",
|
||||
"openai.com",
|
||||
"openaiapi-site.azureedge.net",
|
||||
"openaicom-api-bdcpf8c6d2e9atf6.z01.azurefd.net",
|
||||
"perplexity.ai",
|
||||
"poe.com"
|
||||
],
|
||||
"action": "route",
|
||||
"server": "remote-dns"
|
||||
}
|
||||
],
|
||||
"final": "remote-dns",
|
||||
"strategy": "prefer_ipv4"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"address": [
|
||||
"172.19.0.1/30",
|
||||
"fdfe:dcba:9876::1/126"
|
||||
],
|
||||
"mtu": 9000,
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"stack": "mixed"
|
||||
},
|
||||
{
|
||||
"type": "mixed",
|
||||
"tag": "mixed-in",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 7890
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "Proxy",
|
||||
"outbounds": [
|
||||
"Auto",
|
||||
"US1-VLESS",
|
||||
"US1-TUIC",
|
||||
"US1-HY2",
|
||||
"US2-VLESS",
|
||||
"US2-TUIC",
|
||||
"HK-VLESS",
|
||||
"HK-HY2",
|
||||
"HK-TUIC",
|
||||
"direct"
|
||||
],
|
||||
"default": "Auto"
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "GPT",
|
||||
"outbounds": [
|
||||
"Proxy",
|
||||
"Auto",
|
||||
"US1-VLESS",
|
||||
"US1-TUIC",
|
||||
"US1-HY2",
|
||||
"US2-VLESS",
|
||||
"US2-TUIC",
|
||||
"HK-VLESS",
|
||||
"HK-HY2",
|
||||
"HK-TUIC",
|
||||
"direct"
|
||||
],
|
||||
"default": "Proxy"
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "Steam",
|
||||
"outbounds": [
|
||||
"direct",
|
||||
"Proxy",
|
||||
"Auto",
|
||||
"US1-VLESS",
|
||||
"US1-TUIC",
|
||||
"US2-VLESS",
|
||||
"US2-TUIC",
|
||||
"HK-VLESS",
|
||||
"HK-HY2",
|
||||
"HK-TUIC"
|
||||
],
|
||||
"default": "direct"
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "Emby",
|
||||
"outbounds": [
|
||||
"direct",
|
||||
"Proxy",
|
||||
"Auto",
|
||||
"US1-VLESS",
|
||||
"US1-TUIC",
|
||||
"US1-HY2",
|
||||
"US2-VLESS",
|
||||
"US2-TUIC",
|
||||
"HK-VLESS",
|
||||
"HK-HY2",
|
||||
"HK-TUIC"
|
||||
],
|
||||
"default": "direct"
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "China",
|
||||
"outbounds": [
|
||||
"direct",
|
||||
"Proxy",
|
||||
"Auto",
|
||||
"US1-VLESS",
|
||||
"US2-VLESS",
|
||||
"HK-VLESS"
|
||||
],
|
||||
"default": "direct"
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "Final",
|
||||
"outbounds": [
|
||||
"Proxy",
|
||||
"direct",
|
||||
"Auto",
|
||||
"US1-VLESS",
|
||||
"US1-TUIC",
|
||||
"US1-HY2",
|
||||
"US2-VLESS",
|
||||
"US2-TUIC",
|
||||
"HK-VLESS",
|
||||
"HK-HY2",
|
||||
"HK-TUIC"
|
||||
],
|
||||
"default": "Proxy"
|
||||
},
|
||||
{
|
||||
"type": "urltest",
|
||||
"tag": "Auto",
|
||||
"outbounds": [
|
||||
"US1-VLESS",
|
||||
"US1-TUIC",
|
||||
"US1-HY2",
|
||||
"US2-VLESS",
|
||||
"US2-TUIC",
|
||||
"HK-VLESS",
|
||||
"HK-HY2",
|
||||
"HK-TUIC"
|
||||
],
|
||||
"url": "https://www.gstatic.com/generate_204",
|
||||
"interval": "10m",
|
||||
"tolerance": 50
|
||||
},
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "US1-VLESS",
|
||||
"server": "64.69.34.207",
|
||||
"server_port": 19150,
|
||||
"uuid": "b9136671-ef40-4b5c-a007-dcf996ec2466",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"network": "tcp",
|
||||
"packet_encoding": "xudp",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "aws.amazon.com",
|
||||
"insecure": true,
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "-dTj4YHBzV5tpgVpD4mgXzlAESmxjOoyyn6waky1Dkw",
|
||||
"short_id": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "tuic",
|
||||
"tag": "US1-TUIC",
|
||||
"server": "64.69.34.207",
|
||||
"server_port": 4438,
|
||||
"uuid": "ca4d81b1-f8d9-4533-8b61-c15e1da91697",
|
||||
"password": "ca4d81b1-f8d9-4533-8b61-c15e1da91697",
|
||||
"congestion_control": "bbr",
|
||||
"udp_relay_mode": "native",
|
||||
"zero_rtt_handshake": true,
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"disable_sni": true,
|
||||
"insecure": true,
|
||||
"alpn": [
|
||||
"h3"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "hysteria2",
|
||||
"tag": "US1-HY2",
|
||||
"server": "64.69.34.207",
|
||||
"server_port": 4439,
|
||||
"up_mbps": 200,
|
||||
"down_mbps": 500,
|
||||
"password": "Se7RAuFZ8Lzg",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "hy2.jocayn.qzz.io",
|
||||
"insecure": false,
|
||||
"alpn": [
|
||||
"h3"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "US2-VLESS",
|
||||
"server": "107.174.208.133",
|
||||
"server_port": 34532,
|
||||
"uuid": "1b8889b6-bb2f-4735-a401-4e53bdc81c51",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"network": "tcp",
|
||||
"packet_encoding": "xudp",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "www.cloudflare.com",
|
||||
"insecure": true,
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "R31tFIfDoM8yjrCfQAQqQ8QhFt6KuGjhhtQ3oSnPbAI",
|
||||
"short_id": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "tuic",
|
||||
"tag": "US2-TUIC",
|
||||
"server": "107.174.208.133",
|
||||
"server_port": 4438,
|
||||
"uuid": "161eaa3d-cf5b-4c07-ab36-f4f58536d081",
|
||||
"password": "161eaa3d-cf5b-4c07-ab36-f4f58536d081",
|
||||
"congestion_control": "bbr",
|
||||
"udp_relay_mode": "native",
|
||||
"zero_rtt_handshake": true,
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"disable_sni": true,
|
||||
"insecure": true,
|
||||
"alpn": [
|
||||
"h3"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "HK-VLESS",
|
||||
"server": "154.94.234.168",
|
||||
"server_port": 63159,
|
||||
"uuid": "27485652-f88d-48e8-b4ee-3759ac63ce80",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"network": "tcp",
|
||||
"packet_encoding": "xudp",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "www.amazon.com",
|
||||
"insecure": true,
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "Jq_MTHf-vZLqpvPaViXUSZfQJ3oLM7DYeqBrtH8qlgs",
|
||||
"short_id": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "hysteria2",
|
||||
"tag": "HK-HY2",
|
||||
"server": "154.94.234.168",
|
||||
"server_port": 4438,
|
||||
"up_mbps": 15,
|
||||
"down_mbps": 15,
|
||||
"password": "09e70d0d-fb51-458a-a650-5922eaefcc24",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "hy2.jocay.icu",
|
||||
"insecure": true,
|
||||
"alpn": [
|
||||
"h3"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "tuic",
|
||||
"tag": "HK-TUIC",
|
||||
"server": "154.94.234.168",
|
||||
"server_port": 63155,
|
||||
"uuid": "ef24b7cf-ec2f-48b4-b2eb-c1314f8787ef",
|
||||
"password": "ef24b7cf-ec2f-48b4-b2eb-c1314f8787ef",
|
||||
"congestion_control": "bbr",
|
||||
"udp_relay_mode": "native",
|
||||
"zero_rtt_handshake": true,
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"disable_sni": true,
|
||||
"insecure": true,
|
||||
"alpn": [
|
||||
"h3"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "block",
|
||||
"tag": "block"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"rules": [
|
||||
{
|
||||
"action": "sniff"
|
||||
},
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"ip_is_private": true,
|
||||
"action": "route",
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"domain": [
|
||||
"localhost"
|
||||
],
|
||||
"domain_suffix": [
|
||||
"local",
|
||||
"lan"
|
||||
],
|
||||
"action": "route",
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
"adnxs.com",
|
||||
"adsrvr.org",
|
||||
"doubleclick.net",
|
||||
"googleadservices.com",
|
||||
"googlesyndication.com",
|
||||
"scorecardresearch.com"
|
||||
],
|
||||
"action": "reject"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
"ai.com",
|
||||
"ai.google.dev",
|
||||
"aistudio.google.com",
|
||||
"anthropic.com",
|
||||
"chatgpt.com",
|
||||
"claude.ai",
|
||||
"claudeusercontent.com",
|
||||
"gemini.google.com",
|
||||
"generativelanguage.googleapis.com",
|
||||
"makersuite.google.com",
|
||||
"notebooklm.google.com",
|
||||
"oaistatic.com",
|
||||
"oaiusercontent.com",
|
||||
"openai.com",
|
||||
"openaiapi-site.azureedge.net",
|
||||
"openaicom-api-bdcpf8c6d2e9atf6.z01.azurefd.net",
|
||||
"perplexity.ai",
|
||||
"poe.com"
|
||||
],
|
||||
"action": "route",
|
||||
"outbound": "GPT"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
"emby.media",
|
||||
"emby.wtf",
|
||||
"jellyfin.org",
|
||||
"makima.online",
|
||||
"mobaiemby.site",
|
||||
"recmata.net"
|
||||
],
|
||||
"action": "route",
|
||||
"outbound": "Emby"
|
||||
},
|
||||
{
|
||||
"process_name": [
|
||||
"steam.exe",
|
||||
"steamwebhelper.exe"
|
||||
],
|
||||
"action": "route",
|
||||
"outbound": "Steam"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
"steam-chat.com",
|
||||
"steamcdn-a.akamaihd.net",
|
||||
"steamcommunity.com",
|
||||
"steamcontent.com",
|
||||
"steamgames.com",
|
||||
"steampowered.com",
|
||||
"steamserver.net",
|
||||
"underlords.com",
|
||||
"valvesoftware.com"
|
||||
],
|
||||
"action": "route",
|
||||
"outbound": "Steam"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".cn",
|
||||
"12306.cn",
|
||||
"360.cn",
|
||||
"alicdn.com",
|
||||
"alipay.com",
|
||||
"aliyun.com",
|
||||
"amap.com",
|
||||
"baidu.com",
|
||||
"bdstatic.com",
|
||||
"bilibili.com",
|
||||
"biliapi.net",
|
||||
"bilivideo.com",
|
||||
"ctrip.com",
|
||||
"douban.com",
|
||||
"douyin.com",
|
||||
"edu.cn",
|
||||
"gov.cn",
|
||||
"iqiyi.com",
|
||||
"jd.com",
|
||||
"meituan.com",
|
||||
"mi.com",
|
||||
"netease.com",
|
||||
"qq.com",
|
||||
"sina.com.cn",
|
||||
"snssdk.com",
|
||||
"sohu.com",
|
||||
"taobao.com",
|
||||
"tencent.com",
|
||||
"tmall.com",
|
||||
"weibo.com",
|
||||
"weixin.qq.com",
|
||||
"xiaomi.com",
|
||||
"youku.com",
|
||||
"zhihu.com"
|
||||
],
|
||||
"action": "route",
|
||||
"outbound": "China"
|
||||
}
|
||||
],
|
||||
"final": "Final",
|
||||
"auto_detect_interface": true,
|
||||
"find_process": true,
|
||||
"default_domain_resolver": "local-dns"
|
||||
},
|
||||
"experimental": {
|
||||
"cache_file": {
|
||||
"enabled": true,
|
||||
"store_dns": true
|
||||
},
|
||||
"clash_api": {
|
||||
"external_controller": "127.0.0.1:9090",
|
||||
"default_mode": "Rule"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user