You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/06/11 12:43:18 UTC

[GitHub] [incubator-apisix] houshunwei opened a new issue #1698: request help: Does route supports to match ':authority' header of grpc?

houshunwei opened a new issue #1698:
URL: https://github.com/apache/incubator-apisix/issues/1698


   ### Issue description
   
   I designed different prefix paths for different upstreams of grpc:
   /path1/helloworld.Greeter/SayHello  --> upstream1
   /path2/helloworld.Greeter/SayHello  --> upstream2
   
   but grpc-client does not support path prefix:
   https://github.com/grpc/grpc/issues/14900
   In above grpc issue,  they recommend to use ':authority' header.
   Can you give me some hint to do this using apisix?
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.3
   * OS:centos, docker
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix] nic-chen commented on issue #1698: request help: Does route supports to match ':authority' header of grpc?

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #1698:
URL: https://github.com/apache/incubator-apisix/issues/1698#issuecomment-644475963


   I think path prefix works well in APISIX.
   
   BUT the entire path will be passed to the backend service, like `/path1/helloworld.Greeter/SayHello`, so the backend service can handle it.
   
   Maybe we could use [proxy-rewrite](https://github.com/apache/incubator-apisix/blob/master/doc/plugins/proxy-rewrite.md) to pass the right path `/helloworld.Greeter/SayHello` to backend. 
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix] moonming commented on issue #1698: request help: Does route supports to match ':authority' header of grpc?

Posted by GitBox <gi...@apache.org>.
moonming commented on issue #1698:
URL: https://github.com/apache/incubator-apisix/issues/1698#issuecomment-643962466


   @nic-chen please take a look


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org