Xray-examples/VLESS-TCP-XTLS-Vision/config_server.json
chika0801 c6de1d0d78
Add VLESS-TCP-XTLS-Vision sample config (#83)
* Create config_server.json

* Rename config_server.json to VLESS-TCP-XTLS-Vision/config_server.json

* Create config_client.json

* Update config_client.json
2022-11-02 21:17:10 -04:00

65 lines
1.6 KiB
JSON

{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 16387, // 端口
"protocol": "vless",
"settings": {
"clients": [
{
"id": "", // 用户ID
"flow": "xtls-rprx-vision"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"rejectUnknownSni": true,
"certificates": [
{
"certificateFile": "/etc/ssl/private/fullchain.cer", // 证书
"keyFile": "/etc/ssl/private/private.key" //私钥
}
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
]
}