Back to Sing Box

Introduction

docs/configuration/index.md

1.13.111.1 KB
Original Source

Introduction

sing-box uses JSON for configuration files.

Structure

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

Fields

KeyFormat
logLog
dnsDNS
ntpNTP
certificateCertificate
endpointsEndpoint
inboundsInbound
outboundsOutbound
routeRoute
servicesService
experimentalExperimental

Check

bash
sing-box check

Format

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

Merge

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