1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-11-08 07:49:22 +01:00

Added support for grpcs protocol

This commit is contained in:
Francesco Cattoni 2023-10-22 00:34:32 +02:00 committed by GitHub
parent 67ab97ed64
commit a5566f5e8f
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

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