From 2dcd2663938c330c6ca0a7f376cd1fbb7ef3aac3 Mon Sep 17 00:00:00 2001 From: sixg0000d Date: Mon, 3 May 2021 15:57:58 +0800 Subject: [PATCH] Update README.md --- VLESS-gRPC-TLS/README.md | 56 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/VLESS-gRPC-TLS/README.md b/VLESS-gRPC-TLS/README.md index 247f71c..6ed8dfd 100644 --- a/VLESS-gRPC-TLS/README.md +++ b/VLESS-gRPC-TLS/README.md @@ -4,12 +4,62 @@ ### Nginx -1. In [config_server.json](config_server.json): Remove `tlsSettings`, Change `security` to `none` or simply remove it. +1. In [config_server.json](config_server.json): Remove `tlsSettings`, Change `security` to `none` or simply remove it. Change Inbound listen to 127.0.0.1 or Unix Domain Socket. -2. In nginx config: Listen http2, add location `GunService` (should same as grpc `serviceName`) to listen and proxy. +2. In nginx config: Listen http2, add location `GunService` (should same as grpc `serviceName`). Config clip example: +
+ +v2ray + +> `/etc/v2ray/config.json` (server side) + +```json +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "listen": "127.0.0.1", + "port": 9000, + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "", + "email": "love@v2fly.org" + } + ], + "decryption": "none" + }, + "streamSettings": { + "network": "gun", + "grpcSettings": { + "serviceName": "GunService" + } + } + } + ], + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" + } + ] +} +``` + +
+ +
+ +nginx + +> `/etc/nginx/conf.d/yourdomain.conf` + ```nginx server { # ...... @@ -30,3 +80,5 @@ server { # ...... } ``` + +