matt
(Matt Holt)
June 21, 2022, 4:54pm
1
Caddy proxies gRPC streams quite easily.
Caddyfile:
reverse_proxy h2c://backend
gRPC uses HTTP/2 frames, so h2c://
ensures that cleartext HTTP/2 is enabled to the backend. Alternatively, you can enable TLS to the backend to support normal HTTP/2 over TLS.
4 Likes
matt
(Matt Holt)
Split this topic
June 26, 2022, 12:56am
2
A post was split to a new topic: Streaming gRPC over port 443
gcss
(Carl Drechsel)
June 27, 2022, 3:00am
3
Indeed. This HN post is another post from our @Mohammed90 that goes into a bit more detail:
Caddy <i>is</i> capable of handling bidirectional gRPC streams! I have just tested it, and it works just fine. Caddy will immediately flush writes when upstream is `h2` or `h2c`[0] instead of having to wait until reading from socket is complete<p>I used this Caddyfile to proxy to the route_guide example (<a...
m_sahaf —
8:36 PM - 19 May 2022
1 Like
matt
(Matt Holt)
June 27, 2022, 3:51am
4
That’s the post I was looking for!! Thanks for the link @gcss .
1 Like