github.com/sagernet/sing-box@v1.9.0-rc.20/docs/configuration/index.md (about) 1 # Introduction 2 3 sing-box uses JSON for configuration files. 4 5 ### Structure 6 7 ```json 8 { 9 "log": {}, 10 "dns": {}, 11 "ntp": {}, 12 "inbounds": [], 13 "outbounds": [], 14 "route": {}, 15 "experimental": {} 16 } 17 ``` 18 19 ### Fields 20 21 | Key | Format | 22 |----------------|---------------------------------| 23 | `log` | [Log](./log/) | 24 | `dns` | [DNS](./dns/) | 25 | `ntp` | [NTP](./ntp/) | 26 | `inbounds` | [Inbound](./inbound/) | 27 | `outbounds` | [Outbound](./outbound/) | 28 | `route` | [Route](./route/) | 29 | `experimental` | [Experimental](./experimental/) | 30 31 ### Check 32 33 ```bash 34 sing-box check 35 ``` 36 37 ### Format 38 39 ```bash 40 sing-box format -w -c config.json -D config_directory 41 ``` 42 43 ### Merge 44 45 ```bash 46 sing-box merge output.json -c config.json -D config_directory 47 ```