mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-27 21:15:38 +08:00
51 lines
966 B
JSON
51 lines
966 B
JSON
|
{
|
||
|
"log": {
|
||
|
"loglevel": "debug"
|
||
|
},
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"listen": "127.0.0.1",
|
||
|
"port": "1080",
|
||
|
"protocol": "socks",
|
||
|
"settings": {
|
||
|
"auth": "noauth",
|
||
|
"udp": true,
|
||
|
"ip": "127.0.0.1"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"outbounds": [
|
||
|
{
|
||
|
"protocol": "vmess",
|
||
|
"settings": {
|
||
|
"vnext": [
|
||
|
{
|
||
|
"address": "127.0.0.1",
|
||
|
"port": 1234,
|
||
|
"users": [
|
||
|
{
|
||
|
"id": ""
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"streamSettings": {
|
||
|
"network": "gun",
|
||
|
"security": "tls",
|
||
|
"tlsSettings": {
|
||
|
"serverName": "example.org",
|
||
|
"certificates": [
|
||
|
{
|
||
|
"certificateFile": "/path/to/certificate.crt",
|
||
|
"keyFile": "/path/to/private.key"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"grpcSettings": {
|
||
|
"serviceName": "TunService"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|