97 lines
1.8 KiB
Plaintext
97 lines
1.8 KiB
Plaintext
{
|
|
"log": {
|
|
"loglevel": "warning",
|
|
"access": "/var/log/xray/access.log",
|
|
"error": "/var/log/xray/error.log"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
"https+local://1.1.1.1/dns-query",
|
|
"1.1.1.1"
|
|
],
|
|
"queryStrategy": "UseIP"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"tag": "reality-in",
|
|
"listen": "0.0.0.0",
|
|
"port": 443,
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": "{{CLIENT_UUID}}",
|
|
"email": "{{CLIENT_EMAIL}}",
|
|
"flow": "xtls-rprx-vision"
|
|
}
|
|
],
|
|
"decryption": "none"
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "reality",
|
|
"realitySettings": {
|
|
"show": false,
|
|
"dest": "{{DECOY_HOST}}:443",
|
|
"xver": 0,
|
|
"serverNames": [
|
|
"{{DECOY_HOST}}"
|
|
],
|
|
"privateKey": "{{REALITY_PRIVATE_KEY}}",
|
|
"shortIds": [
|
|
"{{REALITY_SHORT_ID}}"
|
|
]
|
|
}
|
|
},
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": [
|
|
"http",
|
|
"tls",
|
|
"quic"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"tag": "direct",
|
|
"protocol": "freedom",
|
|
"settings": {
|
|
"domainStrategy": "UseIP"
|
|
}
|
|
},
|
|
{
|
|
"tag": "blocked",
|
|
"protocol": "blackhole"
|
|
},
|
|
{
|
|
"tag": "dns-out",
|
|
"protocol": "dns"
|
|
}
|
|
],
|
|
"routing": {
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"port": "53",
|
|
"outboundTag": "dns-out"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"ip": [
|
|
"geoip:private"
|
|
],
|
|
"outboundTag": "blocked"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"protocol": [
|
|
"bittorrent"
|
|
],
|
|
"outboundTag": "blocked"
|
|
}
|
|
]
|
|
}
|
|
}
|