增加创建hysteria自签名证书方式配置

This commit is contained in:
Olia Lisa
2026-05-22 11:15:56 +08:00
parent 3f69ba589b
commit f2bf6371f0
3 changed files with 92 additions and 1 deletions
@@ -0,0 +1,53 @@
{
"log": {
"level": "info",
"timestamp": true,
"output": "/var/log/sing-box/sing-box.log"
},
"inbounds": [
{
"type": "hysteria2",
"tag": "hysteria2-in",
"listen": "::",
"listen_port": 8443,
"obfs": {
"type": "salamander",
"password": "你的混淆密码"
},
"users": [
{
"name": "user1",
"password": "你的密码"
}
],
"up_mbps": 100,
"down_mbps": 100,
"tls": {
"enabled": true,
"server_name": "你的域名",
"alpn": ["h3"],
"key_path": "/etc/sing-box/tls/self-tls/server.key",
"certificate_path": "/etc/sing-box/tls/self-tls/server.crt"
}
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
}
],
"route": {
"rules": [
{
"ip_is_private": true,
"outbound": "block"
}
],
"final": "direct"
}
}