You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/inbound/hysteria2.md
+54-2Lines changed: 54 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ icon: material/alert-decagram
4
4
5
5
!!! quote "Changes in sing-box 1.14.0"
6
6
7
-
:material-plus: [bbr_profile](#bbr_profile)
7
+
:material-plus: [bbr_profile](#bbr_profile)
8
+
:material-plus: [realm](#realm)
8
9
9
10
!!! quote "Changes in sing-box 1.11.0"
10
11
@@ -39,7 +40,14 @@ icon: material/alert-decagram
39
40
40
41
"masquerade": "", // or {}
41
42
"bbr_profile": "",
42
-
"brutal_debug": false
43
+
"brutal_debug": false,
44
+
"realm": {
45
+
"server_url": "https://realm.example.com",
46
+
"token": "",
47
+
"realm_id": "",
48
+
"stun_servers": [],
49
+
"http_client": {}
50
+
}
43
51
}
44
52
```
45
53
@@ -164,3 +172,47 @@ BBR congestion control algorithm profile, one of `conservative` `standard` `aggr
164
172
#### brutal_debug
165
173
166
174
Enable debug information logging for Hysteria Brutal CC.
175
+
176
+
#### realm
177
+
178
+
!!! question "Since sing-box 1.14.0"
179
+
180
+
Register this inbound to a Hysteria Realm rendezvous service to enable NAT traversal.
181
+
182
+
The inbound discovers its public addresses via STUN, registers them on the realm, and uses UDP hole-punching to accept incoming clients without a publicly reachable listen address.
183
+
184
+
See [Hysteria Realm](/configuration/service/hysteria-realm/) for the rendezvous service.
185
+
186
+
#### realm.server_url
187
+
188
+
==Required==
189
+
190
+
Realm rendezvous service URL.
191
+
192
+
#### realm.token
193
+
194
+
Bearer token for the realm. Must match one of `users[].token` configured on the realm.
195
+
196
+
#### realm.realm_id
197
+
198
+
==Required==
199
+
200
+
Slot identifier on the realm.
201
+
202
+
1–64 characters, must match `^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$`.
203
+
204
+
Outbounds must use the same `realm_id` to find this server.
205
+
206
+
#### realm.stun_servers
207
+
208
+
==Required==
209
+
210
+
List of STUN servers (`host` or `host:port`) used to discover public addresses.
211
+
212
+
Port defaults to `3478`.
213
+
214
+
#### realm.http_client
215
+
216
+
HTTP client used to talk to the realm.
217
+
218
+
See [HTTP Client](/configuration/shared/http-client/) for details.
0 commit comments