ADD gRPC support

This commit is contained in:
paniy
2021-04-29 16:23:27 +08:00
parent ed2f3851ac
commit 46e0c39093
4 changed files with 654 additions and 263 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
* **安装好 wget**Centos用户运行:`yum install -y wget`Debian/Ubuntu用户运行:`apt install -y wget`
### 安装/更新方式(此为Xray版)
VLESS+Nginx+WebSocket+TLS 或 VLESS+XTLS+Nginx 或 ws ONLY 三选一:
VLESS+Nginx+WebSocket/gRPC+TLS 或 VLESS+XTLS+Nginx+ws+gRPC 或 ws/gRPC ONLY 三选一:
```
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/paniy/Xray_bash_onekey/main/install.sh" && chmod +x install.sh && bash install.sh
```
+39 -17
View File
@@ -5,26 +5,48 @@
"loglevel": "warning"
},
"inbounds": [{
"port": 10086,
"listen": "127.0.0.1",
"tag": "VLESS-ws-in",
"protocol": "VLESS",
"settings": {
"clients": [{
"id": "UUID",
"level": 0,
"email": "me@idleleo.com"
}],
"decryption": "none"
"port": 10086,
"listen": "127.0.0.1",
"tag": "VLESS-ws-in",
"protocol": "VLESS",
"settings": {
"clients": [{
"id": "UUID",
"level": 0,
"email": "me@idleleo.com"
}],
"decryption": "none"
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"path": "/ray/"
}
}
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"path": "/ray/"
{
"port": 10087,
"listen": "127.0.0.1",
"tag": "VLESS-gRPC-in",
"protocol": "VLESS",
"settings": {
"clients": [{
"id": "UUID",
"level": 0,
"email": "me@idleleo.com"
}],
"decryption": "none"
},
"streamSettings": {
"network": "grpc",
"security": "none",
"grpcSettings": {
"serviceName": "grpc"
}
}
}
}],
],
"outbounds": [{
"protocol": "freedom",
"tag": "direct"
+21
View File
@@ -54,6 +54,27 @@
"path": "/websocket"
}
}
},
{
"port": 10087,
"listen": "127.0.0.1",
"tag": "VLESS-gRPC-in",
"protocol": "VLESS",
"settings": {
"clients": [{
"id": "UUID",
"level": 0,
"email": "me@idleleo.com"
}],
"decryption": "none"
},
"streamSettings": {
"network": "grpc",
"security": "none",
"grpcSettings": {
"serviceName": "grpc"
}
}
}
],
"outbounds": [{
+593 -245
View File
File diff suppressed because it is too large Load Diff