mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-06-28 21:26:06 +08:00
53 lines
1.6 KiB
JSON
53 lines
1.6 KiB
JSON
{
|
|
"log": {
|
|
"loglevel": "warning"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"port": 10800,
|
|
"listen": "127.0.0.1",
|
|
"protocol": "socks",
|
|
"settings": {
|
|
"udp": true
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "vmess",
|
|
"settings": {
|
|
"vnext": [
|
|
{
|
|
"address": "example.com", // Replace it with your domain name or server IP (there is no need to resolve the domain name when making a request)
|
|
"port": 443,
|
|
"users": [
|
|
{
|
|
"id": "", // fill in your UUID
|
|
"security": "none",
|
|
"level": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "tls",
|
|
"tlsSettings": {
|
|
"serverName": "example.com" // Change to your domain name
|
|
},
|
|
"tcpSettings": {
|
|
"header": {
|
|
"type": "http",
|
|
"request": {
|
|
"path": [
|
|
"/vmesstcp" // It must be replaced with a custom PATH, which needs to be consistent with that of the server
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|