easy-xray/template_config_client.json
2023-10-30 14:47:03 +03:00

143 lines
2.8 KiB
JSON

{
"log": {
"access": "none",
"error": "",
"loglevel": "warning",
"dnsLog": false
},
"inbounds": [
{
"tag": "socks",
"port": 800,
"listen": "127.0.0.1",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": false
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
},
{
"tag": "http",
"port": 801,
"listen": "127.0.0.1",
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": false
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "server_address",
"port": 50051,
"users": [
{
"id": "client_id",
"alterId": 0,
"email": "client_email",
"security": "auto",
"encryption": "none",
"flow": ""
}
]
}
]
},
"streamSettings": {
"network": "grpc",
"security": "reality",
"realitySettings": {
"serverName": "www.yahoo.com",
"fingerprint": "chrome",
"show": false,
"publicKey": "public_key",
"shortId": "short_id",
"spiderX": ""
},
"grpcSettings": {
"serviceName": "",
"multiMode": false,
"idle_timeout": 60,
"health_check_timeout": 20,
"permit_without_stream": false,
"initial_windows_size": 0
}
},
"mux": {
"enabled": false,
"concurrency": -1
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"domain": [
"geosite:cn",
"domain:ru",
"domain:by",
"domain:ir"
],
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:cn",
"geoip:ru",
"geoip:by",
"geoip:ir"
],
"outboundTag": "direct"
},
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api",
"enabled": true
}
]
}
}