refine vless over grpc

This commit is contained in:
kslr 2021-04-02 18:52:42 +08:00
parent c0d34dba35
commit dc87e4b12e
2 changed files with 7 additions and 29 deletions

View File

@ -8,15 +8,8 @@
"port": "1080", "port": "1080",
"protocol": "socks", "protocol": "socks",
"settings": { "settings": {
"auth": "noauth", "auth": "noauth"
"udp": true,
"ip": "127.0.0.1"
} }
},
{
"listen": "127.0.0.1",
"port": "1081",
"protocol": "http"
} }
], ],
"outbounds": [ "outbounds": [
@ -25,13 +18,12 @@
"settings": { "settings": {
"vnext": [ "vnext": [
{ {
"address": "1.2.3.4", "address": "your_server_ip",
"port": 443, "port": 443,
"users": [ "users": [
{ {
"id": "", "id": "",
"encryption": "none", "encryption": "none"
"level": 0
} }
] ]
} }
@ -41,12 +33,10 @@
"network": "gun", "network": "gun",
"security": "tls", "security": "tls",
"tlsSettings": { "tlsSettings": {
"serverName": "your.domain.com", "serverName": "your_domain",
"allowInsecure": false,
"alpn": [ "alpn": [
"h2" "h2"
], ]
"disableSessionResumption": true
}, },
"grpcSettings": { "grpcSettings": {
"serviceName": "GunService" "serviceName": "GunService"

View File

@ -11,29 +11,17 @@
"clients": [ "clients": [
{ {
"id": "", "id": "",
"level": 0,
"email": "love@v2fly.org" "email": "love@v2fly.org"
} }
],
"decryption": "none",
"fallbacks": [
{
"dest": 8001
},
{
"alpn": "h2",
"dest": 8002
}
] ]
}, },
"streamSettings": { "streamSettings": {
"network": "gun", "network": "gun",
"security": "tls", "security": "tls",
"tlsSettings": { "tlsSettings": {
"serverName": "your.domain.com", "serverName": "your_domain",
"alpn": [ "alpn": [
"h2", "h2"
"http/1.1"
], ],
"certificates": [ "certificates": [
{ {