跳转到内容
shoes

hysteria2.yaml

所有示例

使用前请修改地址、凭据、证书路径和其他部署相关的值。这是完整的源文件,但不保证未经修改即可在你的机器上运行。请阅读文件中的注释了解前置条件,然后对修改后的文件运行 shoes check。

examples/hysteria2.yaml
# Hysteria2 server examples
# Listen on all IPv4 and IPv6 addresses
- address: "[::]:443"
transport: quic
quic_settings:
cert: cert.pem
key: key.pem
alpn_protocols:
- h3
protocol:
type: hysteria2
password: supersecret
udp_enabled: true
# IPv4 only
- address: "0.0.0.0:8443"
transport: quic
quic_settings:
cert: cert.pem
key: key.pem
alpn_protocols:
- h3
protocol:
type: hysteria2
password: supersecret

查看此修订版本的源文件