-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request help: how to proxy grpc to grpcs. #1833
Comments
I found this: |
actually,it's because following in apisix bin file:
@membphis , do you has any hint to change so i can support |
I have resolved this problem: First Try: extend proxy-rewrite(add grpc and grpcs scheme) and change apisix bin file:
Problem: Second Try:add other block in apisix bin file. and change judgement in init.lua
Result: It works! I will close this issue now. |
welcome PR ^_^ |
The problem is: I use a tricky judgement in init.lua, which is not common. Do you have any hint? Should I add a field to upstream to label it is grpcs? |
@houshunwei we can support the https://github.com/apache/incubator-apisix/blob/master/apisix/init.lua#L280 we can take a look at this PR: #410 |
It's not good to extend above is what i confused about. |
we can not change the |
Surpassed by #3344. |
Issue description
I use Apisix as multi-cluster ingress as following picture shows. But I cannot go through ②,because apisix uses http to request upsterams by default。 Even I use proxy-rewrite plugins to force use https, it has the same error log in
APISIX2 Cluster
:Client request has the following different flows:
cross cluster request: ① --> ② --> ④
same cluster request: ③ --> ④
What should I do? Can any one give me some hint?
I have some thoughts:
Thought One: do not use https when proxying grpc. but how to config?
Thought Two: trust cert of upsteram(it's APISIX2 here) but how?
Environment
apisix version
): 1.4The text was updated successfully, but these errors were encountered: