From 76c8daf2c247088a57f91bc5673f9c254d5487f4 Mon Sep 17 00:00:00 2001 From: iProbe Date: Wed, 12 Jun 2024 15:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Others/hysteria2/=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=AB=AF-=E5=AE=B9=E5=99=A8=E5=90=AF=E5=8A=A8hysteria?= =?UTF-8?q?2.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Others/hysteria2/服务端-容器启动hysteria2.md | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Others/hysteria2/服务端-容器启动hysteria2.md diff --git a/Others/hysteria2/服务端-容器启动hysteria2.md b/Others/hysteria2/服务端-容器启动hysteria2.md new file mode 100644 index 0000000..5e31fa6 --- /dev/null +++ b/Others/hysteria2/服务端-容器启动hysteria2.md @@ -0,0 +1,27 @@ +## 配置文件 +```shell +mkdir /etc/hysteria2 +cat > /etc/hysteria2/hysteria2.yaml << EOF +# 参考: https://v2.hysteria.network/zh/docs/advanced/Full-Server-Config/ +# listen: :443 + +acme: + domains: + # 自动生成证书 + - vpn.example.com + email: text@example.com + +auth: + type: password + # 自行修改密码 + password: 87G9MoaEyqlNGzIzkiy3eMKk + +masquerade: + type: proxy + proxy: + # 混淆反向代理的url,自行修改 + url: https://example.com + rewriteHost: true + listenHTTPS: :443 +EOF +``` \ No newline at end of file