mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-25 01:51:29 +00:00
67 lines
1.1 KiB
JSON
67 lines
1.1 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": "ws",
|
|
"security": "tls",
|
|
"wsSettings": {
|
|
"path": "?ed=2048" //?ed=2048 前面填写你的 path
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"tag": "direct",
|
|
"protocol": "freedom",
|
|
"settings": {}
|
|
},
|
|
{
|
|
"tag": "blocked",
|
|
"protocol": "blackhole",
|
|
"settings": {}
|
|
}
|
|
],
|
|
"routing": {
|
|
"domainStrategy": "IPOnDemand",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"ip": [
|
|
"geoip:private"
|
|
],
|
|
"outboundTag": "direct"
|
|
}
|
|
]
|
|
}
|
|
}
|