mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-23 15:53:28 +03:00
Format examples
This commit is contained in:
@@ -14,35 +14,22 @@
|
|||||||
{
|
{
|
||||||
"type": "wireguard",
|
"type": "wireguard",
|
||||||
"tag": "wireguard-out",
|
"tag": "wireguard-out",
|
||||||
"system":false,
|
|
||||||
"name":"",
|
|
||||||
"mtu": 1408,
|
"mtu": 1408,
|
||||||
"address":[],
|
"address": null,
|
||||||
"private_key": "",
|
"private_key": "",
|
||||||
"listen_port": 10000,
|
"listen_port": 10000,
|
||||||
"peers": [
|
"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,
|
||||||
"s1":0,
|
|
||||||
"s2":0,
|
|
||||||
"h1": 1,
|
"h1": 1,
|
||||||
"h2": 2,
|
"h2": 2,
|
||||||
"h3": 3,
|
"h3": 3,
|
||||||
|
|||||||
@@ -14,19 +14,8 @@
|
|||||||
{
|
{
|
||||||
"type": "warp",
|
"type": "warp",
|
||||||
"tag": "warp-out",
|
"tag": "warp-out",
|
||||||
"system":false,
|
|
||||||
"name":"",
|
|
||||||
"listen_port": 10000,
|
"listen_port": 10000,
|
||||||
"udp_timeout":"",
|
"udp_timeout": "5m0s",
|
||||||
"workers":0,
|
|
||||||
"profile":{
|
|
||||||
"detour":"direct",
|
|
||||||
"recreate":false,
|
|
||||||
// for getting existing WARP device profile
|
|
||||||
"id":"",
|
|
||||||
"private_key":"",
|
|
||||||
"auth_token":""
|
|
||||||
},
|
|
||||||
"amnezia": {
|
"amnezia": {
|
||||||
"jc": 120,
|
"jc": 120,
|
||||||
"jmin": 23,
|
"jmin": 23,
|
||||||
@@ -35,6 +24,13 @@
|
|||||||
"h2": 2,
|
"h2": 2,
|
||||||
"h3": 3,
|
"h3": 3,
|
||||||
"h4": 4
|
"h4": 4
|
||||||
|
},
|
||||||
|
"profile": {
|
||||||
|
"detour": "direct",
|
||||||
|
// for getting existing WARP device profile
|
||||||
|
"id": "",
|
||||||
|
"private_key": "",
|
||||||
|
"auth_token": ""
|
||||||
}
|
}
|
||||||
// Dial Fields
|
// Dial Fields
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,11 +31,8 @@
|
|||||||
"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",
|
||||||
@@ -51,19 +48,14 @@
|
|||||||
"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",
|
||||||
"detour":"direct",
|
"x_padding_bytes": "0-0",
|
||||||
"tls":{
|
"sc_max_each_post_bytes": "0-0",
|
||||||
"enabled":true,
|
"sc_min_posts_interval_ms": "0-0",
|
||||||
"server_name":"example.com",
|
"sc_stream_up_server_secs": "0-0",
|
||||||
"alpn":[
|
|
||||||
"h2" // h3 for QUIC
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"xmux": {
|
"xmux": {
|
||||||
"max_concurrency": "0-1",
|
"max_concurrency": "0-1",
|
||||||
"max_connections": "0-1",
|
"max_connections": "0-1",
|
||||||
@@ -71,9 +63,18 @@
|
|||||||
"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
|
||||||
|
},
|
||||||
|
"server": "example.com",
|
||||||
|
"server_port": 443,
|
||||||
|
"tls": {
|
||||||
|
"enabled": true,
|
||||||
|
"server_name": "example.com",
|
||||||
|
"alpn": "h2" // h3 for QUIC
|
||||||
|
},
|
||||||
|
"detour": "direct"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
"packet_encoding": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "dns",
|
"type": "dns",
|
||||||
|
|||||||
@@ -16,25 +16,23 @@
|
|||||||
"tag": "vless-out",
|
"tag": "vless-out",
|
||||||
"listen": "0.0.0.0",
|
"listen": "0.0.0.0",
|
||||||
"listen_port": 443,
|
"listen_port": 443,
|
||||||
"tls":{
|
|
||||||
"enabled":true,
|
|
||||||
"server_name":"example.com",
|
|
||||||
"certificate_path":"/path/to/fullchain.pem",
|
|
||||||
"key_path":"/path/to/privkey.pem",
|
|
||||||
"alpn":[
|
|
||||||
"h2" // h3 for QUIC
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"users": [
|
"users": [
|
||||||
{
|
{
|
||||||
"name": "user",
|
"name": "user",
|
||||||
"uuid": "3179dce2-2ff9-413c-85b4-c1d53ed41668"
|
"uuid": "3179dce2-2ff9-413c-85b4-c1d53ed41668"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"tls": {
|
||||||
|
"enabled": true,
|
||||||
|
"server_name": "example.com",
|
||||||
|
"alpn": "h2", // h3 for QUIC
|
||||||
|
"certificate_path": "/path/to/fullchain.pem",
|
||||||
|
"key_path": "/path/to/privkey.pem"
|
||||||
|
},
|
||||||
"transport": {
|
"transport": {
|
||||||
"type": "xhttp",
|
"type": "xhttp",
|
||||||
"mode": "stream-up",
|
"mode": "stream-up",
|
||||||
"path":"/xhttp"
|
"path": "/xhttp",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user