mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-02 04:16:38 +00:00
37 lines
555 B
Markdown
37 lines
555 B
Markdown
# Introduction
|
|||
|
|
|
||
|
|
sing-box uses JSON for configuration files.
|
||
|
|
|
||
|
|
### Structure
|
||
|
|
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"log": {},
|
||
|
|
"dns": {},
|
||
|
|
"inbounds": {},
|
||
|
|
"outbounds": {},
|
||
|
|
"route": {}
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
### Fields
|
||
|
|
|
||
|
|
| Key | Format |
|
||
|
|
|-------------|------------------------|
|
||
|
|
| `log` | [Log](./log) |
|
||
|
|
| `dns` | [DNS](./dns) |
|
||
|
|
| `inbounds` | [Inbound](./inbound) |
|
||
|
|
| `outbounds` | [Outbound](./outbound) |
|
||
|
|
| `route` | [Route](./route) |
|
||
|
|
|
||
|
|
### Check
|
||
|
|
|
||
|
|
```bash
|
||
|
|
$ sing-box check
|
||
|
|
```
|
||
|
|
|
||
|
|
### Format
|
||
|
|
|
||
|
|
```bash
|
||
|
|
$ sing-box format -w
|
||
|
|
```
|