mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-22 16:41:29 +00:00
51 lines
857 B
JSON
51 lines
857 B
JSON
|
{
|
||
|
"log": {
|
||
|
"loglevel": "warning"
|
||
|
},
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"port": 2002,
|
||
|
"listen": "127.0.0.1",
|
||
|
"protocol": "vless",
|
||
|
"settings": {
|
||
|
"clients": [
|
||
|
{
|
||
|
"id": "" // 填写你的 UUID
|
||
|
}
|
||
|
],
|
||
|
"decryption": "none"
|
||
|
},
|
||
|
"streamSettings": {
|
||
|
"network": "grpc",
|
||
|
"grpcSettings": {
|
||
|
"serviceName": "" // 填写你的 ServiceName
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"outbounds": [
|
||
|
{
|
||
|
"tag": "direct",
|
||
|
"protocol": "freedom",
|
||
|
"settings": {}
|
||
|
},
|
||
|
{
|
||
|
"tag": "blocked",
|
||
|
"protocol": "blackhole",
|
||
|
"settings": {}
|
||
|
}
|
||
|
],
|
||
|
"routing": {
|
||
|
"domainStrategy": "AsIs",
|
||
|
"rules": [
|
||
|
{
|
||
|
"type": "field",
|
||
|
"ip": [
|
||
|
"geoip:private"
|
||
|
],
|
||
|
"outboundTag": "blocked"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|