添加 Others/hysteria2/服务端-容器启动hysteria2.md
This commit is contained in:
parent
5b3131cd55
commit
76c8daf2c2
1 changed files with 27 additions and 0 deletions
27
Others/hysteria2/服务端-容器启动hysteria2.md
Normal file
27
Others/hysteria2/服务端-容器启动hysteria2.md
Normal file
|
@ -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
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue