소스 검색

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 }}
         {{- 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 }};