Browse Source

Added support for grpcs protocol

Francesco Cattoni 1 năm trước cách đây
mục cha
commit
a5566f5e8f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 }};