1
0
Fork 0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-05-31 03:46:25 +02:00

Merge pull request #2321 from theFra985/patch-1

Add support for grpcs protocol
This commit is contained in:
Nicolas Duchon 2024-01-16 18:59:45 +01:00 committed by GitHub
commit d46881fb58
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

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