48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"log": {
|
|
"access": "./access.log",
|
|
"error": "./error.log",
|
|
"loglevel": "debug"
|
|
},
|
|
"stats": {},
|
|
"api": { "tag": "api", "services": ["StatsService", "ReflectionService"] },
|
|
"policy": {
|
|
"levels": { "0": { "statsUserUplink": true, "statsUserDownlink": true } },
|
|
"system": {
|
|
"statsInboundUplink": true, "statsInboundDownlink": true,
|
|
"statsOutboundUplink": true, "statsOutboundDownlink": true
|
|
}
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"listen": "127.0.0.1",
|
|
"tag": "tunnel-in",
|
|
"port": 4431,
|
|
"protocol": "tunnel",
|
|
"settings": {
|
|
"address": "speed.cloudflare.com",
|
|
"port": 443,
|
|
"network": "tcp"
|
|
},
|
|
"sniffing": { "enabled": true, "destOverride": ["tls"], "routeOnly": true }
|
|
},
|
|
{
|
|
"listen": "127.0.0.1",
|
|
"port": 10085,
|
|
"protocol": "dokodemo-door",
|
|
"settings": { "address": "127.0.0.1" },
|
|
"tag": "api"
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{ "protocol": "freedom", "tag": "direct" },
|
|
{ "protocol": "blackhole", "tag": "block" }
|
|
],
|
|
"routing": {
|
|
"rules": [
|
|
{ "inboundTag": ["tunnel-in"], "domain": ["speed.cloudflare.com"], "outboundTag": "direct" },
|
|
{ "inboundTag": ["tunnel-in"], "outboundTag": "block" },
|
|
{ "inboundTag": ["api"], "outboundTag": "api", "type": "field" }
|
|
]
|
|
}
|
|
} |