sing-box/docs/configuration/index.md

41 lines
771 B
Markdown
Raw Normal View History

2022-07-08 17:01:38 +08:00
# Introduction
sing-box uses JSON for configuration files.
### Structure
```json
{
"log": {},
"dns": {},
2023-02-21 20:20:17 +08:00
"ntp": {},
2022-08-31 13:21:29 +08:00
"inbounds": [],
"outbounds": [],
2022-07-20 07:36:06 +08:00
"route": {},
"experimental": {}
2022-07-08 17:01:38 +08:00
}
```
### Fields
2022-07-20 07:36:06 +08:00
| Key | Format |
|----------------|--------------------------------|
| `log` | [Log](./log) |
| `dns` | [DNS](./dns) |
2023-02-21 20:20:17 +08:00
| `ntp` | [NTP](./ntp) |
2022-07-20 07:36:06 +08:00
| `inbounds` | [Inbound](./inbound) |
| `outbounds` | [Outbound](./outbound) |
| `route` | [Route](./route) |
| `experimental` | [Experimental](./experimental) |
2022-07-08 17:01:38 +08:00
### Check
```bash
$ sing-box check
```
### Format
```bash
$ sing-box format -w
```