Forráskód Böngészése

Added support for grpcs protocol

Francesco Cattoni 1 éve
szülő
commit
a5566f5e8f
1 módosított fájl, 2 hozzáadás és 0 törlés
  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 }};