浏览代码

Added support for grpcs protocol

Francesco Cattoni 1 年之前
父节点
当前提交
a5566f5e8f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      nginx.tmpl

+ 2 - 0
nginx.tmpl

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