> ...So the question is, is this still not possible to be done?

Correct.

You can use the gRPC service name(s) and enumerate those service names in
the reverse proxy to route gRPC traffic accordingly.

Alternatively your gRPC clients can use a different hostname (but the
traffic arrives at the same reverse proxy) and the reverse proxy can route
traffic based on the hostname.

On Thu, Aug 4, 2022 at 3:26 AM Iootu Iootu <[email protected]> wrote:

> I’m currently developing a simple gRPC mock server that listens on the
> same port for both HTTP requests and gRPC (HTTP/2). The solution is not
> configured with TLS and is very similar to the one here
> <https://github.com/grpc/grpc-go/issues/555#issuecomment-443293451>.
>
> This for local environment, works perfectly (for both the HTTP server and
> gRPC server). They are both accessible through localhost:8080. However, for
> productive environments we are using a reverse proxy approach, using
> HAProxy, and the service is then accessible via a non root path.
>
> Which to me, it seems very similar to this post
> <https://groups.google.com/forum/#!topic/grpc-io/e1041Rw2mQI>. So the
> question is, is this still not possible to be done?
>
> Is routing traffic via subdomains still the only possible solution?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/3c13dcf9-3a1a-41f0-8bcc-2730061f7f88n%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/3c13dcf9-3a1a-41f0-8bcc-2730061f7f88n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CA%2BPad6jbb8vZ2n4A5Esb8XPDwnbaB2j-XKQxxs7wiN_3EzOEFQ%40mail.gmail.com.

Reply via email to