-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Feat]: please add support to expose grpc:// uris (http2) #6345
Labels
enhancement
Some improvement that isn't a feature
Comments
sbussard
changed the title
[Feat]: please add support to expose grpc protocol
[Feat]: please add support to expose grpc:// uris (http2)
Jul 20, 2023
Is the idea to make gRPC calls through the proxy to forwarded
ports possible? So if you have a gRPC backend on localhost:8081
and you want to make requests to it through domain.tld/proxy/8081/
for example?
If so, I think #5723 is
related. Currently HTTP is the only supported protocol but it
would be nice to support others (in the linked issue we talk about
forwarding MongoDB and others).
I think maybe what we need is a way to proxy arbitrary data
without needing to be protocol-aware.
|
Absolutely agree! Raw TCP and UDP servers would be nice. GRPC is just http2 but with the |
Ah interesting. I see the issue you opened in proxy-agents,
hopefully they can tell us more about whether http2 is supported
but at a glance it looks like it might not be. Maybe we need to
use a different package or add support upstream.
I imagine the best workaround today would probably be to use
something else to do the proxying.
|
Thanks for your response.
Would that be a setting, or a code change? |
Neither, I was thinking of using an external reverse proxy like
NGINX. So there would be one entry for code-server itself and
then another for proxying arbitrary ports.
If an external proxy is used then code-server's could be disabled
with `--disable-proxy` and the `VSCODE_PROXY_URI` environment
variable could be used to make the right domain show up in the
ports panel if needed.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is your suggestion?
please add support to expose grpc:// uris (http2) -via proxy or any other way
Why do you want this feature?
to enable development with grpc-web
Are there any workarounds to get this functionality today?
No (?)
Are you interested in submitting a PR for this?
I wouldn't know where to start
The text was updated successfully, but these errors were encountered: