2022-08-08 20:57:50 +08:00
### Structure
```json
{
2022-08-31 12:50:26 +08:00
"type": "trojan",
"tag": "trojan-in",
... // Listen Fields
"users": [
2022-08-08 20:57:50 +08:00
{
2022-08-31 12:50:26 +08:00
"name": "sekai",
"password": "8JCsPssfgS8tiRwiMlhARg=="
2022-08-08 20:57:50 +08:00
}
2022-08-31 12:50:26 +08:00
],
"tls": {},
"fallback": {
"server": "127.0.0.1",
"server_port": 8080
},
"fallback_for_alpn": {
"http/1.1": {
"server": "127.0.0.1",
"server_port": 8081
}
},
"transport": {}
2022-08-08 20:57:50 +08:00
}
```
2022-08-31 12:50:26 +08:00
### Listen Fields
See [Listen Fields ](/configuration/shared/listen ) for details.
### Fields
2022-08-23 23:15:56 +08:00
#### users
2022-08-24 18:43:39 +08:00
==Required==
2022-08-23 23:15:56 +08:00
Trojan users.
#### tls
2022-08-24 18:43:39 +08:00
TLS configuration, see [TLS ](/configuration/shared/tls/#inbound ).
2022-08-23 23:15:56 +08:00
#### fallback
!!! error ""
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.
2022-08-25 13:35:48 +08:00
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.
2022-08-23 23:15:56 +08:00
#### transport
V2Ray Transport configuration, see [V2Ray Transport ](/configuration/shared/v2ray-transport ).