mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-23 17:11:29 +00:00
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
{
|
|
"log": {
|
|
"loglevel": "warning"
|
|
},
|
|
"routing": {
|
|
"domainStrategy": "AsIs",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"ip": [
|
|
"geoip:private"
|
|
],
|
|
"outboundTag": "block"
|
|
}
|
|
]
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"listen": "0.0.0.0",
|
|
"port": 1234,
|
|
"protocol": "vmess",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"id": ""
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "http",
|
|
"security": "tls",
|
|
"tlsSettings": {
|
|
"certificates": [
|
|
{
|
|
"certificateFile": "/path/to/certificate.crt",
|
|
"keyFile": "/path/to/key.key"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "freedom",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"protocol": "blackhole",
|
|
"tag": "block"
|
|
}
|
|
]
|
|
}
|