{
  "log": {
    "level": "error"
  },
  "dns": {
    "servers": [
      {
        "type": "local",
        "tag": "default"
      }
    ]
  },
  "inbounds": [],
  "outbounds": [
    {
      "type": "direct",
      "tag": "direct-out"
    },
    {
      "type": "dns",
      "tag": "dns-out"
    }
  ],
  "route": {
    "rules": [
      {
        "protocol": "dns",
        "outbound": "dns-out"
      },
      {
        "port": 53,
        "outbound": "dns-out"
      },
    ],
    "final": "direct-out"
  },
  "services": [
    {
      "type": "manager",
      "tag": "my-manager",
      "database": {
        "driver": "postgresql",
        "dsn": "postgresql://postgres:postgres@localhost:5432/manager?sslmode=disable"
      }
    },
    { // http://127.0.0.1:8000
      // Username: admin
      // Password: admin
      "type": "admin-panel",
      "tag": "my-admin-panel",
      "listen_port": 8000,
      "manager": "my-manager",
      "database": {
        "driver": "postgresql",
        "dsn": "postgresql://postgres:postgres@localhost:5432/adminpanel?sslmode=disable"
      }
    },
    {
      "type": "node-manager-server", // for connecting nodes
      "listen_port": 7000,
      "manager": "my-manager",
      "tls": { // https://sing-box.sagernet.org/configuration/shared/tls/#inbound
        "enabled": true,
        "server_name": "example.com",
        "certificate_path": "/path/to/fullchain.pem",
        "key_path": "/path/to/privkey.pem"
      },
    }
  ]
}
