singbox服务器端协议配置文件格式

reality配置格式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"type": "vless",


"tag": "vless-sb",
"listen": "::",
"listen_port": port,
"users": [
{
"uuid": "uuid",
"flow": "xtls-rprx-vision"
}
],
"tls": {
"enabled": true,
"server_name": "apple.com",
"reality": {
"enabled": true,
"handshake": {
"server": "apple.com",
"server_port": 443
},
"private_key": "private_key",
"short_id": ["short_id"]
}
}
}

hy2配置格式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"type": "hysteria2",


"tag": "hy2-sb",
"listen": "::",
"listen_port": port,
"users": [
{
"password": "password"
}
],
"ignore_client_bandwidth":false,
"tls": {
"enabled": true,
"alpn": [
"h3"
],
"certificate_path": "/etc/s-box/cert.pem", # 修改证书路径
"key_path": "/etc/s-box/private.key" # 修改私钥路径
}
}

tuic5配置格式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"type":"tuic",


"tag": "tuic5-sb",
"listen": "::",
"listen_port": port,
"users": [
{
"uuid": "uuid",
"password": "uuid"
}
],
"congestion_control": "bbr",
"tls":{
"enabled": true,
"alpn": [
"h3"
],
"certificate_path": "/etc/s-box/cert.pem", # 修改证书路径
"key_path": "/etc/s-box/private.key" # 修改私钥路径
}
}

socks5配置格式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"type": "socks",
"tag": "socks-in",
"listen": "::",
"listen_port": port,
"sniff": true,
"sniff_override_destination": true,
"users": [
{
"username": "user",
"password": "password"
}
]
}

ss2022配置格式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"type":"shadowsocks",


"tag": "ss2022-sb",
"listen": "::",
"listen_port": port,
"method": "2022-blake3-aes-256-gcm",
"password": "password",
"multiplex":
{
"enabled": true
}
}

anytles配置格式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"type":"anytls",
"tag":"anytls-sb",
"listen":"::",
"listen_port":port,
"users":[
{
"password":"uuid"
}
],
"padding_scheme":[],
"tls":{
"enabled": true,
"certificate_path": "/etc/s-box/cert.pem", # 修改证书路径
"key_path": "/etc/s-box/private.key" # 修改私钥路径
}
}
[up主专用,视频内嵌代码贴在这]