183 lines
4.0 KiB
JSON
183 lines
4.0 KiB
JSON
{
|
|
"log": {
|
|
"loglevel": "warning",
|
|
"access": "/var/log/xray/access.log",
|
|
"error": "/var/log/xray/error.log"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"listen": "0.0.0.0",
|
|
"port": 8180,
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": "57cd6a01-0de1-4180-9a16-00009efd0acb",
|
|
"flow": "xtls-rprx-vision"
|
|
}
|
|
],
|
|
"decryption": "none",
|
|
"fallbacks": [
|
|
{
|
|
"dest": "8001",
|
|
"xver": 1
|
|
},
|
|
{
|
|
"alpn": "h2",
|
|
"dest": "8002",
|
|
"xver": 1
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "tls",
|
|
"tlsSettings": {
|
|
"rejectUnknownSni": true,
|
|
"minVersion": "1.2",
|
|
"certificates": [
|
|
{
|
|
"ocspStapling": 3600,
|
|
"certificateFile": "/etc/letsencrypt/live/info01.010005.xyz/fullchain.pem",
|
|
"keyFile": "/etc/letsencrypt/live/info01.010005.xyz/privkey.pem"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": ["http", "tls"]
|
|
}
|
|
},
|
|
{
|
|
"listen": "0.0.0.0",
|
|
"port": 5678,
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": "57cd6a01-0de1-4180-9a16-00009efd0ac0"
|
|
}
|
|
],
|
|
"decryption": "none",
|
|
"fallbacks": [
|
|
{
|
|
"dest": "8001",
|
|
"xver": 1
|
|
},
|
|
{
|
|
"alpn": "h2",
|
|
"dest": "8002",
|
|
"xver": 1
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "ws",
|
|
"wsSettings": {
|
|
"path": "/temp09e5"
|
|
},
|
|
"security": "tls",
|
|
"tlsSettings": {
|
|
"serverName": "cc01.060009.xyz",
|
|
"rejectUnknownSni": true,
|
|
"minVersion": "1.2",
|
|
"certificates": [
|
|
{
|
|
"ocspStapling": 3600,
|
|
"certificateFile": "/etc/letsencrypt/live/cc01.060009.xyz/fullchain.pem",
|
|
"keyFile": "/etc/letsencrypt/live/cc01.060009.xyz/privkey.pem"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": ["http", "tls"]
|
|
}
|
|
},
|
|
{
|
|
"tag": "colocrossing-reality-in",
|
|
"port": 8181,
|
|
"protocol": "dokodemo-door",
|
|
"settings": {
|
|
"address": "127.0.0.1",
|
|
"port": 8185,
|
|
"network": "tcp"
|
|
},
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": ["tls"],
|
|
"routeOnly": true
|
|
}
|
|
},
|
|
{
|
|
"listen": "127.0.0.1",
|
|
"port": 8185,
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": "57cd6a01-0de0-4180-9a16-00009efd0ace",
|
|
"flow": "xtls-rprx-vision"
|
|
}
|
|
],
|
|
"decryption": "none"
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "reality",
|
|
"realitySettings": {
|
|
"show": false,
|
|
"dest": "speed.cloudflare.com:443",
|
|
"serverNames": ["speed.cloudflare.com"],
|
|
"privateKey": "8DzN4pEbshWNjUuGqcD9fCtxW_LWhQDuF0SFHLnYslA",
|
|
"shortIds": ["", "0123456789abcdef"]
|
|
}
|
|
},
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": ["http", "tls", "quic"],
|
|
"routeOnly": true
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"tag": "direct",
|
|
"protocol": "freedom"
|
|
},
|
|
{
|
|
"tag": "block",
|
|
"protocol": "blackhole"
|
|
}
|
|
],
|
|
"routing": {
|
|
"domainStrategy": "IPIfNonMatch",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"ip": ["geoip:cn"],
|
|
"outboundTag": "block"
|
|
},
|
|
{
|
|
"inboundTag": ["colocrossing-reality-in"],
|
|
"domain": ["speed.cloudflare.com"],
|
|
"outboundTag": "direct"
|
|
},
|
|
{
|
|
"inboundTag": ["colocrossing-reality-in"],
|
|
"outboundTag": "block"
|
|
}
|
|
]
|
|
},
|
|
"policy": {
|
|
"levels": {
|
|
"0": {
|
|
"handshake": 2,
|
|
"connIdle": 120
|
|
}
|
|
}
|
|
}
|
|
}
|