搭建 Hysteria2 教程
搭建 Hysteria2 教程 适用场景:搭建一个基于 QUIC 的 Hysteria2 代理服务端,利用 sing-box 的 ACME 功能自动签发 TLS 证书,无需手动管理证书文件。 1. 安装 sing-box bash <(curl -fsSL https://sing-box.app/deb-install.sh) 2. 设置开机自启 sudo systemctl enable sing-box 3. 编辑配置文件 cd /etc/sing-box vim config.json 4. Hysteria2 配置示例 { "log": { "disabled": false, "level": "error", "timestamp": true }, "inbounds": [ { "type": "hysteria2", "tag": "hysteria2-in", "listen": "::", "listen_port": 你的端口, "users": [ { "password": "你的密码" } ], "tls": { "enabled": true, "alpn": [ "h3" ], "certificate_path": "", "key_path": "", "acme": { "domain": [ "你的域名" ], "dns01_challenge": { "provider": "cloudflare", "api_token": "你的dns_token" } } } } ], "outbounds": [ { "type": "direct", "tag": "direct" } ] } 配置要点: ...