github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/docs/examples/shadowtls.md (about)

     1  #### Server
     2  
     3  ```json
     4  {
     5    "inbounds": [
     6      {
     7        "type": "shadowtls",
     8        "listen": "::",
     9        "listen_port": 4443,
    10        "version": 3,
    11        "users": [
    12          {
    13            "name": "sekai",
    14            "password": "8JCsPssfgS8tiRwiMlhARg=="
    15          }
    16        ],
    17        "handshake": {
    18          "server": "google.com",
    19          "server_port": 443
    20        },
    21        "detour": "shadowsocks-in"
    22      },
    23      {
    24        "type": "shadowsocks",
    25        "tag": "shadowsocks-in",
    26        "listen": "127.0.0.1",
    27        "network": "tcp",
    28        "method": "2022-blake3-aes-128-gcm",
    29        "password": "8JCsPssfgS8tiRwiMlhARg=="
    30      }
    31    ]
    32  }
    33  ```
    34  
    35  #### Client
    36  
    37  ```json
    38  {
    39    "outbounds": [
    40      {
    41        "type": "shadowsocks",
    42        "method": "2022-blake3-aes-128-gcm",
    43        "password": "8JCsPssfgS8tiRwiMlhARg==",
    44        "detour": "shadowtls-out",
    45        "multiplex": {
    46          "enabled": true,
    47          "max_connections": 4,
    48          "min_streams": 4
    49        }
    50        // or "udp_over_tcp": true
    51      },
    52      {
    53        "type": "shadowtls",
    54        "tag": "shadowtls-out",
    55        "server": "127.0.0.1",
    56        "server_port": 4443,
    57        "version": 3,
    58        "password": "8JCsPssfgS8tiRwiMlhARg==",
    59        "tls": {
    60          "enabled": true,
    61          "server_name": "google.com",
    62          "utls": {
    63            "enabled": true,
    64            "fingerprint": "chrome"
    65          }
    66        }
    67      }
    68    ]
    69  }
    70  ```