增加创建hysteria自签名证书方式配置
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user