Add VLESS-TCP-TLS-gRPC

This commit is contained in:
狂男风
2021-06-25 00:50:56 +08:00
committed by GitHub
parent bc2354904b
commit 7ec14273af

View File

@@ -0,0 +1,81 @@
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"port": 443,
"protocol": "vless",
"settings": {
"decryption": "none",
"fallbacks": [
{
"dest": "web_server:port" // 回落网站
},
{
"alpn": "h2",
"path": "/path/to/gRPC", // gRPC 路径
"dest": 1234
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": [
"h2",
"http/1.1"
],
"certificates": [
{
"certificateFile": "/path/to/fullchain.crt", // 证书绝对路径
"keyFile": "/path/to/private.key" // 私钥绝对路径
}
]
}
}
},
{
"port": 1234,
"listen": "127.0.0.1",
"protocol": "vless",
"settings": {
"clients": [
{
"id": "//用户 UUID",
"level": 0,
"email": "//用户名"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "gun",
"security": "none"
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "block"
}
]
}
}