mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 16:42:21 +08:00
39 lines
706 B
Markdown
39 lines
706 B
Markdown
# Introduction
|
|
|
|
sing-box uses JSON for configuration files.
|
|
|
|
### Structure
|
|
|
|
```json
|
|
{
|
|
"log": {},
|
|
"dns": {},
|
|
"inbounds": [],
|
|
"outbounds": [],
|
|
"route": {},
|
|
"experimental": {}
|
|
}
|
|
```
|
|
|
|
### Fields
|
|
|
|
| Key | Format |
|
|
|----------------|--------------------------------|
|
|
| `log` | [Log](./log) |
|
|
| `dns` | [DNS](./dns) |
|
|
| `inbounds` | [Inbound](./inbound) |
|
|
| `outbounds` | [Outbound](./outbound) |
|
|
| `route` | [Route](./route) |
|
|
| `experimental` | [Experimental](./experimental) |
|
|
|
|
### Check
|
|
|
|
```bash
|
|
$ sing-box check
|
|
```
|
|
|
|
### Format
|
|
|
|
```bash
|
|
$ sing-box format -w
|
|
``` |