Xray-examples/ReverseProxy/VLESS-TCP-XTLS-WS/client_ws.jsonc

67 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"port": "0-65535",
"outboundTag": "proxy"
}
]
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": "2080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
},
{
"listen": "127.0.0.1",
"port": "2081",
"protocol": "http"
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "reverse.example", // 换成你的域名或服务器 IP
"port": 443,
"users": [
{
"id": "", // 填写你的 UUID
"encryption": "none",
"level": 0
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "reverse.example" // 换成你的域名
},
"wsSettings": {
"path": "/externalws" //对应 portal 中 externalws 的 path
}
}
},
{
"protocol": "freedom",
"tag": "direct"
}
]
}