Install or update to the latest version:
bash <(curl -fsSL https://get.hy2.sh/)
Remove Hysteria:
bash <(curl -fsSL https://get.hy2.sh/) --remove
nano /etc/hysteria/config.yaml
listen: :443 acme: domains: - example.com email: [email protected] auth: type: password password: password quic: initStreamReceiveWindow: 8388608 maxStreamReceiveWindow: 8388608 initConnReceiveWindow: 20971520 maxConnReceiveWindow: 20971520 maxIdleTimeout: 30s maxIncomingStreams: 1024 disablePathMTUDiscovery: false acl: inline: - reject(geoip:ir) # geoip: GeoLite2-Country.mmdb disableUDP: false udpIdleTimeout: 60s
+ Take a look at the differences between Hysteria 2 and Hysteria 1 at https://hysteria.network/docs/misc/2-vs-1/
+ Check out the quick server config guide at https://hysteria.network/docs/getting-started/Server/
+ Edit server config file at /etc/hysteria/config.yaml
+ Start your hysteria server with systemctl start hysteria-server.service
+ Configure hysteria start on system boot with systemctl enable hysteria-server.service
References
https://v2.hysteria.network/docs/getting-started/Installation/