Pārlūkot izejas kodu

Added support for grpcs protocol

Francesco Cattoni 1 gadu atpakaļ
vecāks
revīzija
a5566f5e8f
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      nginx.tmpl

+ 2 - 0
nginx.tmpl

@@ -215,6 +215,8 @@
             {{- end }}
         {{- else if eq .Proto "grpc" }}
         grpc_pass {{ trim .Proto }}://{{ trim .Upstream }};
+        {{- else if eq .Proto "grpcs" }}
+        grpc_pass {{ trim .Proto }}://{{ trim .Upstream }};
         {{- else }}
         proxy_pass {{ trim .Proto }}://{{ trim .Upstream }}{{ trim .Dest }};
         set $upstream_keepalive {{ if $keepalive }}true{{ else }}false{{ end }};