mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-25 01:51:29 +00:00
68 lines
1.3 KiB
JSON
68 lines
1.3 KiB
JSON
{
|
|
"log": {},
|
|
"inbounds": [
|
|
{
|
|
"port": "1080",
|
|
"protocol": "socks",
|
|
"settings": {
|
|
"auth": "noauth",
|
|
"udp": true
|
|
}
|
|
},
|
|
{
|
|
"port": "1081",
|
|
"protocol": "http",
|
|
"settings": {}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"vnext": [
|
|
{
|
|
"address": "xx.com",
|
|
"port": 443,
|
|
"users": [
|
|
{
|
|
"id": "", //填写你的 UUID
|
|
"encryption": "none"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "grpc",
|
|
"security": "tls",
|
|
"grpcSettings": {
|
|
"serviceName": "", //填写你的 ServiceName
|
|
//"initial_windows_size": 524288 //通过 Cloudflare CDN 时,防止 Cloudflare CDN 发送意外的 h2 GOAWAY 帧以关闭现有连接。
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"tag": "direct",
|
|
"protocol": "freedom",
|
|
"settings": {}
|
|
},
|
|
{
|
|
"tag": "blocked",
|
|
"protocol": "blackhole",
|
|
"settings": {}
|
|
}
|
|
],
|
|
"routing": {
|
|
"domainStrategy": "IPOnDemand",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"ip": [
|
|
"geoip:private"
|
|
],
|
|
"outboundTag": "direct"
|
|
}
|
|
]
|
|
}
|
|
}
|