Files
sing-box-extended-mirror/examples/xhttp/client.json
T

116 lines
3.4 KiB
JSON
Raw Normal View History

2025-06-08 22:38:32 +03:00
{
2025-06-15 22:23:25 +03:00
"log": {
"level": "error"
2025-06-08 22:38:32 +03:00
},
2025-06-15 22:23:25 +03:00
"dns": {
"servers": [
2025-06-08 22:38:32 +03:00
{
2025-08-15 12:56:52 +03:00
"type": "local",
"tag": "default"
2025-06-08 22:38:32 +03:00
}
]
},
2025-06-15 22:23:25 +03:00
"inbounds": [
2025-06-08 22:38:32 +03:00
{
2025-06-15 22:23:25 +03:00
"type": "mixed",
"tag": "mixed-in",
"listen_port": 7897
2025-06-08 22:38:32 +03:00
}
],
2025-06-15 22:23:25 +03:00
"outbounds": [
2025-06-08 22:38:32 +03:00
{
2025-06-15 22:23:25 +03:00
"type": "direct",
"tag": "direct"
2025-06-08 22:38:32 +03:00
},
{
2025-06-15 22:23:25 +03:00
"type": "vless",
"tag": "vless-out",
"server": "example.com",
"server_port": 443,
"uuid": "3179dce2-2ff9-413c-85b4-c1d53ed41668",
2026-02-22 15:50:00 +03:00
"tls": { // https://sing-box.sagernet.org/configuration/shared/tls/#outbound
2025-06-15 22:23:25 +03:00
"enabled": true,
"server_name": "example.com",
"alpn": "h2" // h3 for QUIC
2025-06-08 22:38:32 +03:00
},
2025-06-15 22:23:25 +03:00
"transport": {
"type": "xhttp",
"mode": "stream-up",
"host": "example.com",
"path": "/xhttp",
"domain_strategy": "prefer_ipv4",
2026-02-22 15:50:00 +03:00
"x_padding_bytes": "100-1000",
"no_grpc_header": false, // stream-up/one, client only
"sc_max_each_post_bytes": 1000000, // packet-up only
"sc_min_posts_interval_ms": 30, // packet-up, client only
"xmux": { // h2/h3 mainly, client only
"max_concurrency": "16-32",
"max_connections": 0,
"c_max_reuse_times": 0,
"h_max_request_times": "600-900",
"h_max_reusable_secs": "1800-3000",
"h_keep_alive_period": 0
2025-06-08 22:38:32 +03:00
},
2026-02-22 15:50:00 +03:00
"x_padding_obfs_mode": false,
"x_padding_key": "",
"x_padding_header": "",
"x_padding_placement": "",
"x_padding_method": "",
"uplink_http_method": "",
"session_placement": "",
"session_key": "",
"seq_placement": "",
"seq_key": "",
"uplink_data_placement": "",
"uplink_data_key": "",
"uplink_chunk_size": 0,
"server": "example.com",
"server_port": 443,
2025-06-15 22:23:25 +03:00
"download": {
"host": "example.com",
"path": "/xhttp",
"domain_strategy": "prefer_ipv4",
2026-02-22 15:50:00 +03:00
"x_padding_bytes": "100-1000",
"no_grpc_header": false, // stream-up/one, client only
"sc_max_each_post_bytes": 1000000, // packet-up only
"sc_min_posts_interval_ms": 30, // packet-up, client only
"xmux": { // h2/h3 mainly, client only
"max_concurrency": "16-32",
"max_connections": 0,
"c_max_reuse_times": 0,
"h_max_request_times": "600-900",
"h_max_reusable_secs": "1800-3000",
"h_keep_alive_period": 0
2025-06-08 22:38:32 +03:00
},
2026-02-22 15:50:00 +03:00
"x_padding_obfs_mode": false,
"x_padding_key": "",
"x_padding_header": "",
"x_padding_placement": "",
"x_padding_method": "",
"uplink_http_method": "",
"session_placement": "",
"session_key": "",
"seq_placement": "",
"seq_key": "",
"uplink_data_placement": "",
"uplink_data_key": "",
"uplink_chunk_size": 0,
2025-06-15 22:23:25 +03:00
"server": "example.com",
"server_port": 443,
2026-02-22 15:50:00 +03:00
"tls": { // https://sing-box.sagernet.org/configuration/shared/tls/#outbound
2025-06-15 22:23:25 +03:00
"enabled": true,
"server_name": "example.com",
"alpn": "h2" // h3 for QUIC
},
"detour": "direct"
2025-06-08 22:38:32 +03:00
}
2025-06-15 22:23:25 +03:00
},
"packet_encoding": ""
2025-06-08 22:38:32 +03:00
}
],
2025-06-15 22:23:25 +03:00
"route": {
"final": "vless-out",
2025-08-15 12:56:52 +03:00
"default_domain_resolver": "default",
2025-06-15 22:23:25 +03:00
"auto_detect_interface": true
2025-06-08 22:38:32 +03:00
}
}