sing-box/docs/configuration/index.md

39 lines
706 B
Markdown
Raw Normal View History

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