mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 03:34:13 +08:00
1.0 KiB
1.0 KiB
引言
sing-box 使用 JSON 作为配置文件格式。
结构
{
"log": {},
"dns": {},
"ntp": {},
"certificate": {},
"endpoints": [],
"inbounds": [],
"outbounds": [],
"route": {},
"services": [],
"experimental": {}
}
字段
Key | Format |
---|---|
log |
日志 |
dns |
DNS |
ntp |
NTP |
certificate |
证书 |
endpoints |
端点 |
inbounds |
入站 |
outbounds |
出站 |
route |
路由 |
services |
服务 |
experimental |
实验性 |
检查
sing-box check
格式化
sing-box format -w -c config.json -D config_directory
合并
sing-box merge output.json -c config.json -D config_directory