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

71 lines
1.8 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": "vless",
"tag": "vless-out",
"listen": "0.0.0.0",
"listen_port": 443,
"users": [
2025-06-08 22:38:32 +03:00
{
2025-06-15 22:23:25 +03:00
"name": "user",
"uuid": "3179dce2-2ff9-413c-85b4-c1d53ed41668"
2025-06-08 22:38:32 +03:00
}
],
2026-02-22 15:50:00 +03:00
"tls": { // https://sing-box.sagernet.org/configuration/shared/tls/#inbound
2025-06-15 22:23:25 +03:00
"enabled": true,
"server_name": "example.com",
"alpn": "h2", // h3 for QUIC
},
"transport": {
"type": "xhttp",
"mode": "stream-up", // packet-up, stream-one
"host": "",
2025-06-15 22:23:25 +03:00
"path": "/xhttp",
"headers": {},
2026-02-22 15:50:00 +03:00
"x_padding_bytes": "100-1000",
"no_sse_header": false, // server only
2026-02-22 18:10:15 +03:00
"sc_max_each_post_bytes": 1000000, // packet-up only
2026-02-22 15:50:00 +03:00
"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": [],
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": "",
"session_placement": "",
"session_key": "",
"seq_placement": "",
"seq_key": "",
"uplink_data_placement": "",
"uplink_data_key": "",
"congestion_controller": "", // h3 only: bbr, bbr_standard, bbr2, bbr2_variant, cubic, reno
"cwnd": 0, // h3 only: initial congestion window in packets, default 32
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
"route": {
"final": "direct",
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
}
2025-06-15 22:23:25 +03:00
}