mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-27 19:11:27 +00:00
cebb145398
* add translate ENGLISH version README.md * Update README.md add link README.ENG.md * Update config_server.json - translation of comments into english * Update config_client.json translation of comments into english * Update config_server.json translation of comments into english * Update config_client.json, translation of comments into english * Update config_server.json translation of comments into english
164 lines
5.3 KiB
JSON
164 lines
5.3 KiB
JSON
{
|
|
"log": {
|
|
"loglevel": "warning"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"port": 443,
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": "", // fill in your UUID
|
|
"flow": "xtls-rprx-direct",
|
|
"level": 0,
|
|
"email": "love@example.com"
|
|
}
|
|
],
|
|
"decryption": "none",
|
|
"fallbacks": [
|
|
{
|
|
"dest": 1310, // Fall back to Xray's Trojan protocol by default
|
|
"xver": 1
|
|
},
|
|
{
|
|
"path": "/websocket", // Must be replaced with a custom PATH
|
|
"dest": 1234,
|
|
"xver": 1
|
|
},
|
|
{
|
|
"path": "/vmesstcp", // Must be replaced with a custom PATH
|
|
"dest": 2345,
|
|
"xver": 1
|
|
},
|
|
{
|
|
"path": "/vmessws", // Must be replaced with a custom PATH
|
|
"dest": 3456,
|
|
"xver": 1
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "xtls",
|
|
"xtlsSettings": {
|
|
"alpn": [
|
|
"http/1.1"
|
|
],
|
|
"certificates": [
|
|
{
|
|
"certificateFile": "/path/to/fullchain.crt", // Replace with your certificate, absolute path
|
|
"keyFile": "/path/to/private.key" // Replace it with your private key, absolute path
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"port": 1310,
|
|
"listen": "127.0.0.1",
|
|
"protocol": "trojan",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"password": "", // fill in your password
|
|
"level": 0,
|
|
"email": "love@example.com"
|
|
}
|
|
],
|
|
"fallbacks": [
|
|
{
|
|
"dest": 80 // or fall back to other proxies that are also probing-proof
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "none",
|
|
"tcpSettings": {
|
|
"acceptProxyProtocol": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"port": 1234,
|
|
"listen": "127.0.0.1",
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": "", // fill in your UUID
|
|
"level": 0,
|
|
"email": "love@example.com"
|
|
}
|
|
],
|
|
"decryption": "none"
|
|
},
|
|
"streamSettings": {
|
|
"network": "ws",
|
|
"security": "none",
|
|
"wsSettings": {
|
|
"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
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"port": 2345,
|
|
"listen": "127.0.0.1",
|
|
"protocol": "vmess",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": "", // fill in your UUID
|
|
"level": 0,
|
|
"email": "love@example.com"
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "none",
|
|
"tcpSettings": {
|
|
"acceptProxyProtocol": true,
|
|
"header": {
|
|
"type": "http",
|
|
"request": {
|
|
"path": [
|
|
"/vmesstcp" // It must be replaced with a custom PATH, which needs to be consistent with the shunt
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"port": 3456,
|
|
"listen": "127.0.0.1",
|
|
"protocol": "vmess",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": "", // fill in your UUID
|
|
"level": 0,
|
|
"email": "love@example.com"
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "ws",
|
|
"security": "none",
|
|
"wsSettings": {
|
|
"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
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "freedom"
|
|
}
|
|
]
|
|
}
|