mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-11-22 03:46:29 +00:00
Merge pull request #1198 from umevoshi/master
Add gRPC protocol support (#1345)
This commit is contained in:
commit
4a2dc46002
@ -312,6 +312,8 @@ server {
|
|||||||
root {{ trim $vhost_root }};
|
root {{ trim $vhost_root }};
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_pass {{ trim $upstream_name }};
|
fastcgi_pass {{ trim $upstream_name }};
|
||||||
|
{{ else if eq $proto "grpc" }}
|
||||||
|
grpc_pass {{ trim $proto }}://{{ trim $upstream_name }};
|
||||||
{{ else }}
|
{{ else }}
|
||||||
proxy_pass {{ trim $proto }}://{{ trim $upstream_name }};
|
proxy_pass {{ trim $proto }}://{{ trim $upstream_name }};
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -359,6 +361,8 @@ server {
|
|||||||
root {{ trim $vhost_root }};
|
root {{ trim $vhost_root }};
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_pass {{ trim $upstream_name }};
|
fastcgi_pass {{ trim $upstream_name }};
|
||||||
|
{{ else if eq $proto "grpc" }}
|
||||||
|
grpc_pass {{ trim $proto }}://{{ trim $upstream_name }};
|
||||||
{{ else }}
|
{{ else }}
|
||||||
proxy_pass {{ trim $proto }}://{{ trim $upstream_name }};
|
proxy_pass {{ trim $proto }}://{{ trim $upstream_name }};
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user