github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/docs/configuration/outbound/trojan.md (about)

     1  ### Structure
     2  
     3  ```json
     4  {
     5    "type": "trojan",
     6    "tag": "trojan-out",
     7  
     8    "server": "127.0.0.1",
     9    "server_port": 1080,
    10    "password": "8JCsPssfgS8tiRwiMlhARg==",
    11    "network": "tcp",
    12    "tls": {},
    13    "multiplex": {},
    14    "transport": {},
    15  
    16    ... // Dial Fields
    17  }
    18  ```
    19  
    20  ### Fields
    21  
    22  #### server
    23  
    24  ==Required==
    25  
    26  The server address.
    27  
    28  #### server_port
    29  
    30  ==Required==
    31  
    32  The server port.
    33  
    34  #### password
    35  
    36  ==Required==
    37  
    38  The Trojan password.
    39  
    40  #### network
    41  
    42  Enabled network
    43  
    44  One of `tcp` `udp`.
    45  
    46  Both is enabled by default.
    47  
    48  #### tls
    49  
    50  TLS configuration, see [TLS](/configuration/shared/tls/#outbound).
    51  
    52  #### multiplex
    53  
    54  Multiplex configuration, see [Multiplex](/configuration/shared/multiplex).
    55  
    56  #### transport
    57  
    58  V2Ray Transport configuration, see [V2Ray Transport](/configuration/shared/v2ray-transport).
    59  
    60  ### Dial Fields
    61  
    62  See [Dial Fields](/configuration/shared/dial) for details.