mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 13:44:14 +08:00
remove yaml, toml from docs
This commit is contained in:
parent
ed708c3e89
commit
8fb5d40c37
@ -42,12 +42,12 @@ $ sing-box format -w
|
||||
|
||||
> You can skip this section if you are using only one configuration file.
|
||||
|
||||
sing-box supports multiple files and multiple formats. The latter overwrites and merges into the former, in the order in which the configuration files are loaded.
|
||||
sing-box supports multiple configuration files. The latter overwrites and merges into the former, in the order in which the configuration files are loaded.
|
||||
|
||||
|
||||
```bash
|
||||
# Load by the order of parameters
|
||||
sing-box run -c inbound.json -c outbound.yaml -c -c http://url.to/config.toml
|
||||
sing-box run -c inbound.json -c outbound.json
|
||||
# Load by the order of file names
|
||||
sing-box run -r -c config_dir
|
||||
```
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 引言
|
||||
|
||||
sing-box 支持 JSON、JSONC、YAML、TOML 作为配置文件格式。
|
||||
sing-box 使用 JSON 作为配置文件格式。
|
||||
|
||||
### 结构
|
||||
|
||||
@ -42,11 +42,11 @@ $ sing-box format -w
|
||||
|
||||
> 如果只使用单个配置文件,您完全可以忽略这一节。
|
||||
|
||||
sing-box 支持多文件、多格式混合使用。按照配置文件的加载顺序,后者会覆盖并合并到前者。
|
||||
sing-box 支持多文件配置。按照配置文件的加载顺序,后者会覆盖并合并到前者。
|
||||
|
||||
```bash
|
||||
# 根据参数顺序加载
|
||||
sing-box run -c inbound.json -c outbound.yaml -c http://url.to/config.toml
|
||||
sing-box run -c inbound.json -c outbound.json
|
||||
# 根据文件名顺序加载
|
||||
sing-box run -r -c config_dir
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user