Xray-examples/VLESS-TCP-XTLS-Vision/config_server.json
chika0801 ad496cb607
Vision配置示例更新 (#128)
* Update config_client.json

* Update config_server.json

* Update config_server.json

* Update config_server.json

* Update config_server.json

* Create nginx.conf

* Create README.md
2023-03-06 23:57:12 -05:00

84 lines
2.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": [
"geoip:cn"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0", // "0.0.0.0" 表示同时监听IPv4和IPv6
"port": 443, // 服务端监听的端口
"protocol": "vless",
"settings": {
"clients": [
{
"id": "", // 用户ID执行 xray uuid 生成,或 1-30 字节的字符串
"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/ssl/private/fullchain.cer", // 证书文件建议用fullchain全SSL证书链若只有网站证书会出现v2rayN能使用v2rayNG不能使用的情况通常不区分扩展名
"keyFile": "/etc/ssl/private/private.key" // 私钥文件
}
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
],
"policy": {
"levels": {
"0": {
"handshake": 2, // 连接建立时的握手时间限制,单位为秒,默认值为 4建议与默认值不同
"connIdle": 120 // 连接空闲的时间限制,单位为秒,默认值为 300建议与默认值不同
}
}
}