mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-05 12:56:38 +00:00
69 lines
1.3 KiB
Markdown
69 lines
1.3 KiB
Markdown
### Structure
|
|
|
|
```json
|
|
{
|
|
"type": "trojan",
|
|
"tag": "trojan-in",
|
|
|
|
... // Listen Fields
|
|
|
|
"users": [
|
|
{
|
|
"name": "sekai",
|
|
"password": "8JCsPssfgS8tiRwiMlhARg=="
|
|
}
|
|
],
|
|
"tls": {},
|
|
"fallback": {
|
|
"server": "127.0.0.1",
|
|
"server_port": 8080
|
|
},
|
|
"fallback_for_alpn": {
|
|
"http/1.1": {
|
|
"server": "127.0.0.1",
|
|
"server_port": 8081
|
|
}
|
|
},
|
|
"multiplex": {},
|
|
"transport": {}
|
|
}
|
|
```
|
|
|
|
### Listen Fields
|
|
|
|
See [Listen Fields](/configuration/shared/listen/) for details.
|
|
|
|
### Fields
|
|
|
|
#### users
|
|
|
|
==Required==
|
|
|
|
Trojan users.
|
|
|
|
#### tls
|
|
|
|
TLS configuration, see [TLS](/configuration/shared/tls/#inbound).
|
|
|
|
#### fallback
|
|
|
|
!!! failure ""
|
|
|
|
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.
|
|
|
|
Fallback server configuration. Disabled if `fallback` and `fallback_for_alpn` are empty.
|
|
|
|
#### fallback_for_alpn
|
|
|
|
Fallback server configuration for specified ALPN.
|
|
|
|
If not empty, TLS fallback requests with ALPN not in this table will be rejected.
|
|
|
|
#### multiplex
|
|
|
|
See [Multiplex](/configuration/shared/multiplex#inbound) for details.
|
|
|
|
#### transport
|
|
|
|
V2Ray Transport configuration, see [V2Ray Transport](/configuration/shared/v2ray-transport/).
|