github.com/sagernet/sing-box@v1.9.0-rc.20/docs/configuration/inbound/trojan.md (about)

     1  ### Structure
     2  
     3  ```json
     4  {
     5    "type": "trojan",
     6    "tag": "trojan-in",
     7  
     8    ... // Listen Fields
     9  
    10    "users": [
    11      {
    12        "name": "sekai",
    13        "password": "8JCsPssfgS8tiRwiMlhARg=="
    14      }
    15    ],
    16    "tls": {},
    17    "fallback": {
    18      "server": "127.0.0.1",
    19      "server_port": 8080
    20    },
    21    "fallback_for_alpn": {
    22      "http/1.1": {
    23        "server": "127.0.0.1",
    24        "server_port": 8081
    25      }
    26    },
    27    "multiplex": {},
    28    "transport": {}
    29  }
    30  ```
    31  
    32  ### Listen Fields
    33  
    34  See [Listen Fields](/configuration/shared/listen/) for details.
    35  
    36  ### Fields
    37  
    38  #### users
    39  
    40  ==Required==
    41  
    42  Trojan users.
    43  
    44  #### tls
    45  
    46  TLS configuration, see [TLS](/configuration/shared/tls/#inbound).
    47  
    48  #### fallback
    49  
    50  !!! quote ""
    51  
    52      There is no evidence that GFW detects and blocks Trojan servers based on HTTP responses, and opening the standard http/s port on the server is a much bigger signature.
    53  
    54  Fallback server configuration. Disabled if `fallback` and `fallback_for_alpn` are empty.
    55  
    56  #### fallback_for_alpn
    57  
    58  Fallback server configuration for specified ALPN.
    59  
    60  If not empty, TLS fallback requests with ALPN not in this table will be rejected.
    61  
    62  #### multiplex
    63  
    64  See [Multiplex](/configuration/shared/multiplex#inbound) for details.
    65  
    66  #### transport
    67  
    68  V2Ray Transport configuration, see [V2Ray Transport](/configuration/shared/v2ray-transport/).