2022-08-24 10:43:39 +00:00
|
|
|
|
### 结构
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
2022-08-31 04:50:26 +00:00
|
|
|
|
"type": "trojan",
|
|
|
|
|
"tag": "trojan-in",
|
|
|
|
|
|
|
|
|
|
... // 监听字段
|
|
|
|
|
|
|
|
|
|
"users": [
|
2022-08-24 10:43:39 +00:00
|
|
|
|
{
|
2022-08-31 04:50:26 +00:00
|
|
|
|
"name": "sekai",
|
|
|
|
|
"password": "8JCsPssfgS8tiRwiMlhARg=="
|
2022-08-24 10:43:39 +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
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-08 04:09:22 +00:00
|
|
|
|
"multiplex": {},
|
2022-08-31 04:50:26 +00:00
|
|
|
|
"transport": {}
|
2022-08-24 10:43:39 +00:00
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2022-08-31 04:50:26 +00:00
|
|
|
|
### 监听字段
|
|
|
|
|
|
|
|
|
|
参阅 [监听字段](/zh/configuration/shared/listen/)。
|
|
|
|
|
|
|
|
|
|
### 字段
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
|
|
|
|
#### users
|
|
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
Trojan 用户。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
|
|
|
|
#### tls
|
|
|
|
|
|
|
|
|
|
==如果启用 HTTP3 则必填==
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#inbound)。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
|
|
|
|
#### fallback
|
|
|
|
|
|
2023-11-09 09:04:08 +00:00
|
|
|
|
!!! quote ""
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
2022-08-28 04:40:44 +00:00
|
|
|
|
没有证据表明 GFW 基于 HTTP 响应检测并阻止 Trojan 服务器,并且在服务器上打开标准 http/s 端口是一个更大的特征。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
2022-08-25 05:35:48 +00:00
|
|
|
|
回退服务器配置。如果 `fallback` 和 `fallback_for_alpn` 为空,则禁用回退。
|
|
|
|
|
|
|
|
|
|
#### fallback_for_alpn
|
|
|
|
|
|
|
|
|
|
为 ALPN 指定回退服务器配置。
|
|
|
|
|
|
|
|
|
|
如果不为空,ALPN 不在此列表中的 TLS 回退请求将被拒绝。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
2023-11-08 04:09:22 +00:00
|
|
|
|
#### multiplex
|
|
|
|
|
|
|
|
|
|
参阅 [多路复用](/zh/configuration/shared/multiplex#inbound)。
|
|
|
|
|
|
2022-08-24 10:43:39 +00:00
|
|
|
|
#### transport
|
|
|
|
|
|
2023-12-14 14:23:52 +00:00
|
|
|
|
V2Ray 传输配置,参阅 [V2Ray 传输层](/zh/configuration/shared/v2ray-transport/)。
|