2020-11-24 16:10:49 +00:00
|
|
|
{
|
|
|
|
"log": {
|
|
|
|
"loglevel": "warning"
|
|
|
|
},
|
|
|
|
"inbounds": [
|
|
|
|
{
|
|
|
|
"port": 443,
|
|
|
|
"protocol": "vless",
|
|
|
|
"settings": {
|
|
|
|
"clients": [
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"id": "", // fill in your UUID
|
2020-11-24 16:10:49 +00:00
|
|
|
"flow": "xtls-rprx-direct",
|
|
|
|
"level": 0,
|
|
|
|
"email": "love@example.com"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"decryption": "none",
|
|
|
|
"fallbacks": [
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"dest": 1310, // Fall back to Xray's Trojan protocol by default
|
2020-11-24 16:10:49 +00:00
|
|
|
"xver": 1
|
|
|
|
},
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"path": "/websocket", // Must be replaced with a custom PATH
|
2020-11-24 16:10:49 +00:00
|
|
|
"dest": 1234,
|
|
|
|
"xver": 1
|
|
|
|
},
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"path": "/vmesstcp", // Must be replaced with a custom PATH
|
2020-11-24 16:10:49 +00:00
|
|
|
"dest": 2345,
|
|
|
|
"xver": 1
|
|
|
|
},
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"path": "/vmessws", // Must be replaced with a custom PATH
|
2020-11-24 16:10:49 +00:00
|
|
|
"dest": 3456,
|
|
|
|
"xver": 1
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"streamSettings": {
|
|
|
|
"network": "tcp",
|
|
|
|
"security": "xtls",
|
|
|
|
"xtlsSettings": {
|
|
|
|
"alpn": [
|
|
|
|
"http/1.1"
|
|
|
|
],
|
|
|
|
"certificates": [
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"certificateFile": "/path/to/fullchain.crt", // Replace with your certificate, absolute path
|
|
|
|
"keyFile": "/path/to/private.key" // Replace it with your private key, absolute path
|
2020-11-24 16:10:49 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"port": 1310,
|
|
|
|
"listen": "127.0.0.1",
|
|
|
|
"protocol": "trojan",
|
|
|
|
"settings": {
|
|
|
|
"clients": [
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"password": "", // fill in your password
|
2020-11-24 16:10:49 +00:00
|
|
|
"level": 0,
|
|
|
|
"email": "love@example.com"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"fallbacks": [
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"dest": 80 // or fall back to other proxies that are also probing-proof
|
2020-11-24 16:10:49 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"streamSettings": {
|
|
|
|
"network": "tcp",
|
|
|
|
"security": "none",
|
|
|
|
"tcpSettings": {
|
|
|
|
"acceptProxyProtocol": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"port": 1234,
|
|
|
|
"listen": "127.0.0.1",
|
|
|
|
"protocol": "vless",
|
|
|
|
"settings": {
|
|
|
|
"clients": [
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"id": "", // fill in your UUID
|
2020-11-24 16:10:49 +00:00
|
|
|
"level": 0,
|
|
|
|
"email": "love@example.com"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"decryption": "none"
|
|
|
|
},
|
|
|
|
"streamSettings": {
|
|
|
|
"network": "ws",
|
|
|
|
"security": "none",
|
|
|
|
"wsSettings": {
|
2023-03-12 01:37:52 +00:00
|
|
|
"acceptProxyProtocol": true, // Reminder: If you use Nginx/Caddy to reverse generation WS, you need to delete this line
|
|
|
|
"path": "/websocket" // It must be replaced with a custom PATH, which needs to be consistent with the shunt
|
2020-11-24 16:10:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"port": 2345,
|
|
|
|
"listen": "127.0.0.1",
|
|
|
|
"protocol": "vmess",
|
|
|
|
"settings": {
|
|
|
|
"clients": [
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"id": "", // fill in your UUID
|
2020-11-24 16:10:49 +00:00
|
|
|
"level": 0,
|
|
|
|
"email": "love@example.com"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"streamSettings": {
|
|
|
|
"network": "tcp",
|
|
|
|
"security": "none",
|
|
|
|
"tcpSettings": {
|
|
|
|
"acceptProxyProtocol": true,
|
|
|
|
"header": {
|
|
|
|
"type": "http",
|
|
|
|
"request": {
|
|
|
|
"path": [
|
2023-03-12 01:37:52 +00:00
|
|
|
"/vmesstcp" // It must be replaced with a custom PATH, which needs to be consistent with the shunt
|
2020-11-24 16:10:49 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"port": 3456,
|
|
|
|
"listen": "127.0.0.1",
|
|
|
|
"protocol": "vmess",
|
|
|
|
"settings": {
|
|
|
|
"clients": [
|
|
|
|
{
|
2023-03-12 01:37:52 +00:00
|
|
|
"id": "", // fill in your UUID
|
2020-11-24 16:10:49 +00:00
|
|
|
"level": 0,
|
|
|
|
"email": "love@example.com"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"streamSettings": {
|
|
|
|
"network": "ws",
|
|
|
|
"security": "none",
|
|
|
|
"wsSettings": {
|
2023-03-12 01:37:52 +00:00
|
|
|
"acceptProxyProtocol": true, // Reminder: If you use Nginx/Caddy to reverse generation WS, you need to delete this line
|
|
|
|
"path": "/vmessws" // It must be replaced with a custom PATH, which needs to be consistent with the shunt
|
2020-11-24 16:10:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbounds": [
|
|
|
|
{
|
|
|
|
"protocol": "freedom"
|
|
|
|
}
|
|
|
|
]
|
2023-03-12 01:37:52 +00:00
|
|
|
}
|