From 62d51562b5bcd40fb2a8ce378c6cc9e0f53f3930 Mon Sep 17 00:00:00 2001 From: umevoshi Date: Thu, 15 Nov 2018 01:02:57 +0900 Subject: [PATCH] Add gRPC protocol support --- nginx.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx.tmpl b/nginx.tmpl index d861050..9c9e0aa 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -280,6 +280,8 @@ server { root {{ trim $vhost_root }}; include fastcgi.conf; fastcgi_pass {{ trim $upstream_name }}; + {{ else if eq $proto "grpc" }} + grpc_pass {{ trim $proto }}://{{ trim $upstream_name }}; {{ else }} proxy_pass {{ trim $proto }}://{{ trim $upstream_name }}; {{ end }} @@ -327,6 +329,8 @@ server { root {{ trim $vhost_root }}; include fastcgi.conf; fastcgi_pass {{ trim $upstream_name }}; + {{ else if eq $proto "grpc" }} + grpc_pass {{ trim $proto }}://{{ trim $upstream_name }}; {{ else }} proxy_pass {{ trim $proto }}://{{ trim $upstream_name }}; {{ end }}