2
0
Эх сурвалжийг харах

Merge pull request #2321 from theFra985/patch-1

Add support for grpcs protocol
Nicolas Duchon 1 жил өмнө
parent
commit
d46881fb58
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      nginx.tmpl

+ 2 - 0
nginx.tmpl

@@ -268,6 +268,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 ne $keepalive "disabled" }}true{{ else }}false{{ end }};