57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
|
|
{
|
||
|
|
"log": {
|
||
|
|
"loglevel": "warning",
|
||
|
|
"access": "/var/log/xray/access.log",
|
||
|
|
"error": "/var/log/xray/error.log"
|
||
|
|
},
|
||
|
|
"dns": {
|
||
|
|
"servers": ["1.1.1.1", "8.8.8.8"],
|
||
|
|
"queryStrategy": "UseIP"
|
||
|
|
},
|
||
|
|
"inbounds": [
|
||
|
|
{
|
||
|
|
"tag": "reality-{{NODE_TAG}}-entry",
|
||
|
|
"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"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|