mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-12-01 10:56:38 +00:00
72 lines
1.8 KiB
JSON
72 lines
1.8 KiB
JSON
|
{
|
||
|
"log": {
|
||
|
"loglevel": "warning"
|
||
|
},
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"listen": "127.0.0.1",
|
||
|
"port": "1080",
|
||
|
"protocol": "socks",
|
||
|
"settings": {
|
||
|
"auth": "noauth",
|
||
|
"udp": true,
|
||
|
"ip": "127.0.0.1"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"listen": "127.0.0.1",
|
||
|
"port": "1081",
|
||
|
"protocol": "http"
|
||
|
}
|
||
|
],
|
||
|
"outbounds": [
|
||
|
{
|
||
|
"protocol": "vless",
|
||
|
"settings": {
|
||
|
"vnext": [
|
||
|
{
|
||
|
"address": "1.2.3.4",
|
||
|
"port": 443,
|
||
|
"user": [
|
||
|
{
|
||
|
"id": "",
|
||
|
"encryption": "none",
|
||
|
"level": 0
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"streamSettings": {
|
||
|
"network": "tcp",
|
||
|
"security": "tls",
|
||
|
"tlsSettings": {
|
||
|
"serverName": "example.domain",
|
||
|
"allowInsecure": false,
|
||
|
"alpn": [
|
||
|
"h2",
|
||
|
"http/1.1"
|
||
|
],
|
||
|
"disableSessionResumption": true
|
||
|
}
|
||
|
},
|
||
|
"tag": "proxy"
|
||
|
},
|
||
|
{
|
||
|
"protocol": "freedom",
|
||
|
"tag": "direct"
|
||
|
}
|
||
|
],
|
||
|
"routing": {
|
||
|
"domainStrategy": "AsIs",
|
||
|
"rules": [
|
||
|
{
|
||
|
"type": "field",
|
||
|
"ip": [
|
||
|
"geoip:private"
|
||
|
],
|
||
|
"tag": "direct"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|