sing-box/docs/configuration/index.md
2024-11-25 13:32:33 +08:00

969 B

Introduction

sing-box uses JSON for configuration files.

Structure

{
  "log": {},
  "dns": {},
  "ntp": {},
  "endpoints": [],
  "inbounds": [],
  "outbounds": [],
  "route": {},
  "experimental": {}
}

Fields

Key Format
log Log
dns DNS
ntp NTP
endpoints Endpoint
inbounds Inbound
outbounds Outbound
route Route
experimental Experimental

Check

sing-box check

Format

sing-box format -w -c config.json -D config_directory

Merge

sing-box merge output.json -c config.json -D config_directory