docs/configuration/service/hysteria-realm.md
!!! question "Since sing-box 1.14.0"
Hysteria Realm is a rendezvous service for Hysteria2 NAT traversal.
A Hysteria2 server behind NAT registers its STUN-discovered public addresses to a stable realm endpoint; clients query the realm to learn the server's current addresses and perform UDP hole-punching to establish a direct QUIC connection.
The realm only carries control-plane signaling. Once hole-punching succeeds, all proxy traffic flows directly between client and server.
{
"type": "hysteria-realm",
... // Listen Fields
"tls": {},
... // HTTP2 Fields
"users": [
{
"name": "",
"token": "",
"max_realms": 0
}
]
}
See Listen Fields for details.
See HTTP2 Fields for details.
TLS configuration, see TLS.
When configured, the realm serves HTTP/2 over TLS; otherwise plain HTTP/1.1.
==Required==
Authorized users.
==Required==
Username, used in logs and as the quota key.
==Required==
Bearer token presented by Hysteria2 inbounds and outbounds via Authorization: Bearer <token>.
Maximum number of realm slots this user may hold concurrently.