mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-30 12:31:30 +00:00
72 lines
2 KiB
Plaintext
72 lines
2 KiB
Plaintext
{
|
|
"log": {
|
|
"loglevel": "warning"
|
|
},
|
|
"routing": {
|
|
"domainStrategy": "AsIs",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"ip": [
|
|
"geoip:private"
|
|
],
|
|
"outboundTag": "block"
|
|
}
|
|
]
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"listen": "0.0.0.0",
|
|
"port": 1234,
|
|
"protocol": "vmess",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": ""
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"tcpSettings": {
|
|
"header": {
|
|
"type": "http",
|
|
"response": {
|
|
"version": "1.1",
|
|
"status": "200",
|
|
"reason": "OK",
|
|
"headers": {
|
|
"Content-Type": [
|
|
"application/octet-stream",
|
|
"video/mpeg",
|
|
"application/x-msdownload",
|
|
"text/html",
|
|
"application/x-shockwave-flash"
|
|
],
|
|
"Transfer-Encoding": [
|
|
"chunked"
|
|
],
|
|
"Connection": [
|
|
"keep-alive"
|
|
],
|
|
"Pragma": "no-cache"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": "none"
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "freedom",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"protocol": "blackhole",
|
|
"tag": "block"
|
|
}
|
|
]
|
|
}
|