2022-08-24 10:43:39 +00:00
|
|
|
|
### 结构
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
2022-08-31 04:50:26 +00:00
|
|
|
|
"type": "hysteria",
|
|
|
|
|
"tag": "hysteria-in",
|
|
|
|
|
|
|
|
|
|
... // 监听字段
|
|
|
|
|
|
|
|
|
|
"up": "100 Mbps",
|
|
|
|
|
"up_mbps": 100,
|
|
|
|
|
"down": "100 Mbps",
|
|
|
|
|
"down_mbps": 100,
|
|
|
|
|
"obfs": "fuck me till the daylight",
|
2022-11-09 03:40:36 +00:00
|
|
|
|
|
|
|
|
|
"users": [
|
|
|
|
|
{
|
|
|
|
|
"name": "sekai",
|
|
|
|
|
"auth": "",
|
|
|
|
|
"auth_str": "password"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
2022-08-31 04:50:26 +00:00
|
|
|
|
"recv_window_conn": 0,
|
|
|
|
|
"recv_window_client": 0,
|
|
|
|
|
"max_conn_client": 0,
|
|
|
|
|
"disable_mtu_discovery": false,
|
|
|
|
|
"tls": {}
|
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
|
|
|
|
|
|
|
|
|
#### up, down
|
|
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
格式: `[Integer] [Unit]` 例如: `100 Mbps, 640 KBps, 2 Gbps`
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
支持的单位 (大小写敏感, b = bits, B = bytes, 8b=1B):
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
|
|
|
|
bps (bits per second)
|
|
|
|
|
Bps (bytes per second)
|
|
|
|
|
Kbps (kilobits per second)
|
|
|
|
|
KBps (kilobytes per second)
|
|
|
|
|
Mbps (megabits per second)
|
|
|
|
|
MBps (megabytes per second)
|
|
|
|
|
Gbps (gigabits per second)
|
|
|
|
|
GBps (gigabytes per second)
|
|
|
|
|
Tbps (terabits per second)
|
|
|
|
|
TBps (terabytes per second)
|
|
|
|
|
|
|
|
|
|
#### up_mbps, down_mbps
|
|
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
以 Mbps 为单位的 `up, down`。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
|
|
|
|
#### obfs
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
混淆密码。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
2022-11-09 03:40:36 +00:00
|
|
|
|
#### users
|
|
|
|
|
|
|
|
|
|
Hysteria 用户
|
|
|
|
|
|
|
|
|
|
#### users.auth
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
base64 编码的认证密码。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
2022-11-09 03:40:36 +00:00
|
|
|
|
#### users.auth_str
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
认证密码。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
|
|
|
|
#### recv_window_conn
|
|
|
|
|
|
|
|
|
|
用于接收数据的 QUIC 流级流控制窗口。
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
默认 `15728640 (15 MB/s)`。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
|
|
|
|
#### recv_window_client
|
|
|
|
|
|
|
|
|
|
用于接收数据的 QUIC 连接级流控制窗口。
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
默认 `67108864 (64 MB/s)`。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
|
|
|
|
#### max_conn_client
|
|
|
|
|
|
|
|
|
|
允许对等点打开的 QUIC 并发双向流的最大数量。
|
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
|
默认 `1024`。
|
2022-08-24 10:43:39 +00:00
|
|
|
|
|
|
|
|
|
#### disable_mtu_discovery
|
|
|
|
|
|
|
|
|
|
禁用路径 MTU 发现 (RFC 8899)。 数据包的大小最多为 1252 (IPv4) / 1232 (IPv6) 字节。
|
|
|
|
|
|
|
|
|
|
强制为 Linux 和 Windows 以外的系统启用(根据上游)。
|
|
|
|
|
|
|
|
|
|
#### tls
|
|
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
|
2022-08-31 04:50:26 +00:00
|
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#inbound)。
|