2022-08-08 20:57:50 +08:00
|
|
|
### Structure
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 13:21:29 +08:00
|
|
|
"type": "trojan",
|
|
|
|
"tag": "trojan-out",
|
|
|
|
|
|
|
|
"server": "127.0.0.1",
|
|
|
|
"server_port": 1080,
|
|
|
|
"password": "8JCsPssfgS8tiRwiMlhARg==",
|
|
|
|
"network": "tcp",
|
|
|
|
"tls": {},
|
|
|
|
"multiplex": {},
|
|
|
|
"transport": {},
|
|
|
|
|
|
|
|
... // Dial Fields
|
2022-08-08 20:57:50 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
### Fields
|
2022-08-08 20:57:50 +08:00
|
|
|
|
|
|
|
#### server
|
|
|
|
|
|
|
|
==Required==
|
|
|
|
|
|
|
|
The server address.
|
|
|
|
|
|
|
|
#### server_port
|
|
|
|
|
|
|
|
==Required==
|
|
|
|
|
|
|
|
The server port.
|
|
|
|
|
|
|
|
#### password
|
|
|
|
|
|
|
|
==Required==
|
|
|
|
|
|
|
|
The Trojan password.
|
|
|
|
|
|
|
|
#### network
|
|
|
|
|
|
|
|
Enabled network
|
|
|
|
|
|
|
|
One of `tcp` `udp`.
|
|
|
|
|
|
|
|
Both is enabled by default.
|
|
|
|
|
|
|
|
#### tls
|
|
|
|
|
2022-08-24 21:02:28 +08:00
|
|
|
TLS configuration, see [TLS](/configuration/shared/tls/#outbound).
|
2022-08-08 20:57:50 +08:00
|
|
|
|
|
|
|
#### multiplex
|
|
|
|
|
2023-11-08 12:09:22 +08:00
|
|
|
See [Multiplex](/configuration/shared/multiplex#outbound) for details.
|
2022-08-08 20:57:50 +08:00
|
|
|
|
2022-08-23 23:15:56 +08:00
|
|
|
#### transport
|
|
|
|
|
2023-12-14 22:23:52 +08:00
|
|
|
V2Ray Transport configuration, see [V2Ray Transport](/configuration/shared/v2ray-transport/).
|
2022-08-23 23:15:56 +08:00
|
|
|
|
2022-08-08 20:57:50 +08:00
|
|
|
### Dial Fields
|
|
|
|
|
2023-12-14 22:23:52 +08:00
|
|
|
See [Dial Fields](/configuration/shared/dial/) for details.
|