mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-14 00:51:12 +03:00
69 lines
1.6 KiB
JSON
69 lines
1.6 KiB
JSON
{
|
|
"log": {
|
|
"level": "error"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"type": "local",
|
|
"tag": "default"
|
|
}
|
|
]
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "vless",
|
|
"tag": "vless-out",
|
|
"listen": "0.0.0.0",
|
|
"listen_port": 443,
|
|
"users": [
|
|
{
|
|
"name": "user",
|
|
"uuid": "3179dce2-2ff9-413c-85b4-c1d53ed41668"
|
|
}
|
|
],
|
|
"tls": { // https://sing-box.sagernet.org/configuration/shared/tls/#inbound
|
|
"enabled": true,
|
|
"server_name": "example.com",
|
|
"alpn": "h2", // h3 for QUIC
|
|
},
|
|
"transport": {
|
|
"type": "xhttp",
|
|
"mode": "stream-up", // packet-up, stream-one
|
|
"host": "",
|
|
"path": "/xhttp",
|
|
"headers": {},
|
|
"x_padding_bytes": "100-1000",
|
|
"no_sse_header": false, // server only
|
|
"sc_max_each_post_bytes": 1000000, // packet-up only
|
|
"sc_max_buffered_posts": 30, // packet-up, server only
|
|
"sc_stream_up_server_secs": "20-80", // stream-up, server only
|
|
"server_max_header_bytes": 8192,
|
|
"trusted_x_forwarded_for": [],
|
|
"x_padding_obfs_mode": false,
|
|
"x_padding_key": "",
|
|
"x_padding_header": "",
|
|
"x_padding_placement": "",
|
|
"x_padding_method": "",
|
|
"session_placement": "",
|
|
"session_key": "",
|
|
"seq_placement": "",
|
|
"seq_key": "",
|
|
"uplink_data_placement": "",
|
|
"uplink_data_key": "",
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
}
|
|
],
|
|
"route": {
|
|
"final": "direct",
|
|
"default_domain_resolver": "default",
|
|
"auto_detect_interface": true
|
|
}
|
|
}
|