github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/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 41 ```