{ "log": { "access": "/var/log/xray-core/access.log", "error": "/var/log/xray-core/error.log", "loglevel": "warning", "dnsLog": false, "maskAddress": "" }, "dns": { "queryStrategy": "UseIPv4", "servers": [ "1.1.1.1", "1.0.0.1" ] }, "inbounds": [ { "listen": "/dev/shm/xrxh.socket,0666", "protocol": "vless", "settings": { "clients": [ {% for user in xray_users %} { "email": "{{ user.email }}", "flow": "xtls-rprx-vision", "id": "{{ user.id }}" }{{ "," if not loop.last else "" }} {% endfor %} ], "decryption": "{{ xray_decryption }}" }, "streamSettings": { "network": "xhttp", "security": "none", "xhttpSettings": { "mode": "stream-one", "path": "{{ xray_xhttp_path }}" } }, "sniffing": { "enabled": false } } ], "outbounds": [ { "tag": "direct", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv4" } }, { "tag": "blocked", "protocol": "blackhole", "settings": { "response": { "type": "none" } } } ], "routing": { "domainStrategy": "IPIfNonMatch", "rules": [ { "type": "field", "protocol": "bittorrent", "outboundTag": "blocked" }, { "type": "field", "ip": "geoip:ru", "outboundTag": "blocked" } ] } }