Iflengmo opened a new issue #1144: request help: apisix代理grpc问题
URL: https://github.com/apache/incubator-apisix/issues/1144
 
 
   ### Issue description
   apisix代理grpc服务
   准备了apisix给的grpc示例服务,设置好路由
   curl http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d '
   {
       "methods": ["POST", "GET"],
       "uri": "/helloworld.Greeter/SayHello",
       "service_protocol": "grpc",
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "127.0.0.1:50051": 1
           }
       }
   }'
   自己openssl做了pem格式的cert和key,添加了证书,sni这个参数这里如何设置?
   自定义设置了foo.com
   grpcurl -insecure -import-path ./proto  -proto helloworld.proto  \
       -d '{"name":"apisix"}' 127.0.0.1:9443 helloworld.Greeter.SayHello
   按照文档上说的来访问,结果是
   ERROR:
     Code: Internal
     Message: transport: received the unexpected content-type "text/html"
   将127.0.0.1改为了foo.com访问,结果依旧是这样的。
   ### Environment
   
   * apisix version (cmd: `apisix version`):1.0
   * OS:centos7.2
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to