2022-08-08 12:57:50 +00:00
### Structure
```json
{
2022-08-31 04:50:26 +00:00
"type": "trojan",
"tag": "trojan-in",
... // Listen Fields
"users": [
2022-08-08 12:57:50 +00:00
{
2022-08-31 04:50:26 +00:00
"name": "sekai",
"password": "8JCsPssfgS8tiRwiMlhARg=="
2022-08-08 12:57:50 +00:00
}
2022-08-31 04:50:26 +00: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 12:57:50 +00:00
}
```
2022-08-31 04:50:26 +00:00
### Listen Fields
See [Listen Fields ](/configuration/shared/listen ) for details.
### Fields
2022-08-23 15:15:56 +00:00
#### users
2022-08-24 10:43:39 +00:00
==Required==
2022-08-23 15:15:56 +00:00
Trojan users.
#### tls
2022-08-24 10:43:39 +00:00
TLS configuration, see [TLS ](/configuration/shared/tls/#inbound ).
2022-08-23 15:15:56 +00: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 05:35:48 +00: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 15:15:56 +00:00
#### transport
V2Ray Transport configuration, see [V2Ray Transport ](/configuration/shared/v2ray-transport ).