mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-22 08:31:29 +00:00
38 lines
972 B
JSON
38 lines
972 B
JSON
{
|
||
"log": {
|
||
"loglevel": "warning"
|
||
},
|
||
"inbounds": [
|
||
{
|
||
"port": 10800,
|
||
"listen": "127.0.0.1",
|
||
"protocol": "socks",
|
||
"settings": {
|
||
"udp": true
|
||
}
|
||
}
|
||
],
|
||
"outbounds": [
|
||
{
|
||
"protocol": "trojan",
|
||
"settings": {
|
||
"servers": [
|
||
{
|
||
"address": "example.com", // 换成你的域名或服务器 IP(发起请求时无需解析域名了)
|
||
"port": 443,
|
||
"password": "", // 填写你的密码
|
||
"level": 0
|
||
}
|
||
]
|
||
},
|
||
"streamSettings": {
|
||
"network": "tcp",
|
||
"security": "tls",
|
||
"tlsSettings": {
|
||
"serverName": "example.com" // 换成你的域名
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|