mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-28 05:02:43 +03:00
Format examples
This commit is contained in:
@@ -1,84 +1,71 @@
|
|||||||
{
|
{
|
||||||
"log":{
|
"log": {
|
||||||
"level":"error"
|
"level": "error"
|
||||||
},
|
},
|
||||||
"dns":{
|
"dns": {
|
||||||
"servers":[
|
"servers": [
|
||||||
{
|
{
|
||||||
"address":"local",
|
"address": "local",
|
||||||
"detour":"direct"
|
"detour": "direct"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"endpoints":[
|
"endpoints": [
|
||||||
{
|
{
|
||||||
"type":"wireguard",
|
"type": "wireguard",
|
||||||
"tag":"wireguard-out",
|
"tag": "wireguard-out",
|
||||||
"system":false,
|
"mtu": 1408,
|
||||||
"name":"",
|
"address": null,
|
||||||
"mtu":1408,
|
"private_key": "",
|
||||||
"address":[],
|
"listen_port": 10000,
|
||||||
"private_key":"",
|
"peers": [
|
||||||
"listen_port":10000,
|
|
||||||
"peers":[
|
|
||||||
{
|
{
|
||||||
"address":"example.com",
|
"address": "example.com",
|
||||||
"port":10001,
|
"port": 10001,
|
||||||
"public_key":"",
|
"reserved": "AAAA"
|
||||||
"pre_shared_key":"",
|
|
||||||
"allowed_ips":[],
|
|
||||||
"persistent_keepalive_interval":0,
|
|
||||||
"reserved":[
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"udp_timeout":"",
|
"udp_timeout": "5m0s",
|
||||||
"workers":0,
|
"amnezia": {
|
||||||
"amnezia":{
|
"jc": 120,
|
||||||
"jc":120,
|
"jmin": 23,
|
||||||
"jmin":23,
|
"jmax": 911,
|
||||||
"jmax":911,
|
"h1": 1,
|
||||||
"s1":0,
|
"h2": 2,
|
||||||
"s2":0,
|
"h3": 3,
|
||||||
"h1":1,
|
"h4": 4
|
||||||
"h2":2,
|
|
||||||
"h3":3,
|
|
||||||
"h4":4
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"inbounds":[
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"type":"mixed",
|
"type": "mixed",
|
||||||
"tag":"mixed-in",
|
"tag": "mixed-in",
|
||||||
"listen_port":7897
|
"listen_port": 7897
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds":[
|
"outbounds": [
|
||||||
{
|
{
|
||||||
"type":"direct",
|
"type": "direct",
|
||||||
"tag":"direct"
|
"tag": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"dns",
|
"type": "dns",
|
||||||
"tag":"dns-out"
|
"tag": "dns-out"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"route":{
|
"route": {
|
||||||
"rules":[
|
"rules": [
|
||||||
{
|
{
|
||||||
"protocol":"dns",
|
"protocol": "dns",
|
||||||
"outbound":"dns-out"
|
"outbound": "dns-out"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"port":53,
|
"port": 53,
|
||||||
"outbound":"dns-out"
|
"outbound": "dns-out"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final":"wireguard-out",
|
"final": "wireguard-out",
|
||||||
"auto_detect_interface":true
|
"auto_detect_interface": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,79 +1,75 @@
|
|||||||
{
|
{
|
||||||
"log":{
|
"log": {
|
||||||
"level":"error"
|
"level": "error"
|
||||||
},
|
},
|
||||||
"dns":{
|
"dns": {
|
||||||
"servers":[
|
"servers": [
|
||||||
{
|
{
|
||||||
"address":"local",
|
"address": "local",
|
||||||
"detour":"direct"
|
"detour": "direct"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"endpoints":[
|
"endpoints": [
|
||||||
{
|
{
|
||||||
"type":"warp",
|
"type": "warp",
|
||||||
"tag":"warp-out",
|
"tag": "warp-out",
|
||||||
"system":false,
|
"listen_port": 10000,
|
||||||
"name":"",
|
"udp_timeout": "5m0s",
|
||||||
"listen_port":10000,
|
"amnezia": {
|
||||||
"udp_timeout":"",
|
"jc": 120,
|
||||||
"workers":0,
|
"jmin": 23,
|
||||||
"profile":{
|
"jmax": 911,
|
||||||
"detour":"direct",
|
"h1": 1,
|
||||||
"recreate":false,
|
"h2": 2,
|
||||||
// for getting existing WARP device profile
|
"h3": 3,
|
||||||
"id":"",
|
"h4": 4
|
||||||
"private_key":"",
|
|
||||||
"auth_token":""
|
|
||||||
},
|
},
|
||||||
"amnezia":{
|
"profile": {
|
||||||
"jc":120,
|
"detour": "direct",
|
||||||
"jmin":23,
|
// for getting existing WARP device profile
|
||||||
"jmax":911,
|
"id": "",
|
||||||
"h1":1,
|
"private_key": "",
|
||||||
"h2":2,
|
"auth_token": ""
|
||||||
"h3":3,
|
|
||||||
"h4":4
|
|
||||||
}
|
}
|
||||||
// Dial Fields
|
// Dial Fields
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"inbounds":[
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"type":"mixed",
|
"type": "mixed",
|
||||||
"tag":"mixed-in",
|
"tag": "mixed-in",
|
||||||
"listen_port":7897
|
"listen_port": 7897
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds":[
|
"outbounds": [
|
||||||
{
|
{
|
||||||
"type":"direct",
|
"type": "direct",
|
||||||
"tag":"direct"
|
"tag": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"dns",
|
"type": "dns",
|
||||||
"tag":"dns-out"
|
"tag": "dns-out"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"route":{
|
"route": {
|
||||||
"rules":[
|
"rules": [
|
||||||
{
|
{
|
||||||
"protocol":"dns",
|
"protocol": "dns",
|
||||||
"outbound":"dns-out"
|
"outbound": "dns-out"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"port":53,
|
"port": 53,
|
||||||
"outbound":"dns-out"
|
"outbound": "dns-out"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final":"warp-out",
|
"final": "warp-out",
|
||||||
"auto_detect_interface":true
|
"auto_detect_interface": true
|
||||||
},
|
},
|
||||||
"experimental":{
|
"experimental": {
|
||||||
"cache_file":{
|
"cache_file": {
|
||||||
"enabled":true,
|
"enabled": true,
|
||||||
"store_warp_config":true
|
"store_warp_config": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,97 +1,98 @@
|
|||||||
{
|
{
|
||||||
"log":{
|
"log": {
|
||||||
"level":"error"
|
"level": "error"
|
||||||
},
|
},
|
||||||
"dns":{
|
"dns": {
|
||||||
"servers":[
|
"servers": [
|
||||||
{
|
{
|
||||||
"address":"local",
|
"address": "local",
|
||||||
"detour":"direct"
|
"detour": "direct"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"inbounds":[
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"type":"mixed",
|
"type": "mixed",
|
||||||
"tag":"mixed-in",
|
"tag": "mixed-in",
|
||||||
"listen_port":7897
|
"listen_port": 7897
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds":[
|
"outbounds": [
|
||||||
{
|
{
|
||||||
"type":"direct",
|
"type": "direct",
|
||||||
"tag":"direct"
|
"tag": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"vless",
|
"type": "vless",
|
||||||
"tag":"vless-out",
|
"tag": "vless-out",
|
||||||
"server":"example.com",
|
"server": "example.com",
|
||||||
"server_port":443,
|
"server_port": 443,
|
||||||
"uuid":"3179dce2-2ff9-413c-85b4-c1d53ed41668",
|
"uuid": "3179dce2-2ff9-413c-85b4-c1d53ed41668",
|
||||||
"tls":{
|
"tls": {
|
||||||
"enabled":true,
|
"enabled": true,
|
||||||
"server_name":"example.com",
|
"server_name": "example.com",
|
||||||
"alpn":[
|
"alpn": "h2" // h3 for QUIC
|
||||||
"h2" // h3 for QUIC
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"packet_encoding":"",
|
"transport": {
|
||||||
"transport":{
|
"type": "xhttp",
|
||||||
"type":"xhttp",
|
"mode": "stream-up",
|
||||||
"mode":"stream-up",
|
"host": "example.com",
|
||||||
"host":"example.com",
|
"path": "/xhttp",
|
||||||
"path":"/xhttp",
|
"domain_strategy": "prefer_ipv4",
|
||||||
"domain_strategy":"prefer_ipv4",
|
"xmux": {
|
||||||
"xmux":{
|
"max_concurrency": "0-1",
|
||||||
"max_concurrency":"0-1",
|
"max_connections": "0-1",
|
||||||
"max_connections":"0-1",
|
"c_max_reuse_times": "0-1",
|
||||||
"c_max_reuse_times":"0-1",
|
"h_max_request_times": "0-1",
|
||||||
"h_max_request_times":"0-1",
|
"h_max_reusable_secs": "0-1",
|
||||||
"h_max_reusable_secs":"0-1",
|
"h_keep_alive_period": 60
|
||||||
"h_keep_alive_period":60
|
|
||||||
},
|
},
|
||||||
"download":{
|
"download": {
|
||||||
"server":"example.com",
|
"mode": "",
|
||||||
"server_port":443,
|
"host": "example.com",
|
||||||
"host":"example.com",
|
"path": "/xhttp",
|
||||||
"path":"/xhttp",
|
"domain_strategy": "prefer_ipv4",
|
||||||
"domain_strategy":"prefer_ipv4",
|
"x_padding_bytes": "0-0",
|
||||||
"detour":"direct",
|
"sc_max_each_post_bytes": "0-0",
|
||||||
"tls":{
|
"sc_min_posts_interval_ms": "0-0",
|
||||||
"enabled":true,
|
"sc_stream_up_server_secs": "0-0",
|
||||||
"server_name":"example.com",
|
"xmux": {
|
||||||
"alpn":[
|
"max_concurrency": "0-1",
|
||||||
"h2" // h3 for QUIC
|
"max_connections": "0-1",
|
||||||
]
|
"c_max_reuse_times": "0-1",
|
||||||
|
"h_max_request_times": "0-1",
|
||||||
|
"h_max_reusable_secs": "0-1",
|
||||||
|
"h_keep_alive_period": 60
|
||||||
},
|
},
|
||||||
"xmux":{
|
"server": "example.com",
|
||||||
"max_concurrency":"0-1",
|
"server_port": 443,
|
||||||
"max_connections":"0-1",
|
"tls": {
|
||||||
"c_max_reuse_times":"0-1",
|
"enabled": true,
|
||||||
"h_max_request_times":"0-1",
|
"server_name": "example.com",
|
||||||
"h_max_reusable_secs":"0-1",
|
"alpn": "h2" // h3 for QUIC
|
||||||
"h_keep_alive_period":60
|
},
|
||||||
}
|
"detour": "direct"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"packet_encoding": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"dns",
|
"type": "dns",
|
||||||
"tag":"dns-out"
|
"tag": "dns-out"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"route":{
|
"route": {
|
||||||
"rules":[
|
"rules": [
|
||||||
{
|
{
|
||||||
"protocol":"dns",
|
"protocol": "dns",
|
||||||
"outbound":"dns-out"
|
"outbound": "dns-out"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"port":53,
|
"port": 53,
|
||||||
"outbound":"dns-out"
|
"outbound": "dns-out"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final":"vless-out",
|
"final": "vless-out",
|
||||||
"auto_detect_interface":true
|
"auto_detect_interface": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,65 +1,63 @@
|
|||||||
{
|
{
|
||||||
"log":{
|
"log": {
|
||||||
"level":"error"
|
"level": "error"
|
||||||
},
|
},
|
||||||
"dns":{
|
"dns": {
|
||||||
"servers":[
|
"servers": [
|
||||||
{
|
{
|
||||||
"address":"local",
|
"address": "local",
|
||||||
"detour":"direct"
|
"detour": "direct"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"inbounds":[
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"type":"vless",
|
"type": "vless",
|
||||||
"tag":"vless-out",
|
"tag": "vless-out",
|
||||||
"listen":"0.0.0.0",
|
"listen": "0.0.0.0",
|
||||||
"listen_port":443,
|
"listen_port": 443,
|
||||||
"tls":{
|
"users": [
|
||||||
"enabled":true,
|
|
||||||
"server_name":"example.com",
|
|
||||||
"certificate_path":"/path/to/fullchain.pem",
|
|
||||||
"key_path":"/path/to/privkey.pem",
|
|
||||||
"alpn":[
|
|
||||||
"h2" // h3 for QUIC
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"users":[
|
|
||||||
{
|
{
|
||||||
"name":"user",
|
"name": "user",
|
||||||
"uuid":"3179dce2-2ff9-413c-85b4-c1d53ed41668"
|
"uuid": "3179dce2-2ff9-413c-85b4-c1d53ed41668"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"transport":{
|
"tls": {
|
||||||
"type":"xhttp",
|
"enabled": true,
|
||||||
"mode":"stream-up",
|
"server_name": "example.com",
|
||||||
"path":"/xhttp"
|
"alpn": "h2", // h3 for QUIC
|
||||||
|
"certificate_path": "/path/to/fullchain.pem",
|
||||||
|
"key_path": "/path/to/privkey.pem"
|
||||||
|
},
|
||||||
|
"transport": {
|
||||||
|
"type": "xhttp",
|
||||||
|
"mode": "stream-up",
|
||||||
|
"path": "/xhttp",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds":[
|
"outbounds": [
|
||||||
{
|
{
|
||||||
"type":"direct",
|
"type": "direct",
|
||||||
"tag":"direct"
|
"tag": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"dns",
|
"type": "dns",
|
||||||
"tag":"dns-out"
|
"tag": "dns-out"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"route":{
|
"route": {
|
||||||
"rules":[
|
"rules": [
|
||||||
{
|
{
|
||||||
"protocol":"dns",
|
"protocol": "dns",
|
||||||
"outbound":"dns-out"
|
"outbound": "dns-out"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"port":53,
|
"port": 53,
|
||||||
"outbound":"dns-out"
|
"outbound": "dns-out"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final":"direct",
|
"final": "direct",
|
||||||
"auto_detect_interface":true
|
"auto_detect_interface": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user