GRPC go: using grpc server behind a https reverse proxy

1,098 views
Skip to first unread message

sad...@thetigerworks.com

unread,
May 24, 2016, 10:05:38 AM5/24/16
to grpc.io
i am trying to run a grpc server behind an reverse proxy (HAProxy), as haproxy doesn't support http2 yet, i am using mode tcp.

the grpc traffics from client to server pass through fine when i use mode tcp and did not use any tls cert. 
But when i am using any public tls cert, the cert is being terminated at the reverse proxy, the communication seems not working.
Seeing a lot of        
transport: http2Client.notifyError got notified that the client transport was broken EOF.


now in my senario how can i achive an tls termination to reverse proxy from client?

sad...@thetigerworks.com

unread,
May 25, 2016, 12:56:04 AM5/25/16
to grpc.io
This problem was fixed by only appending 

grpc.WithTransportCredentials(
   credentials.NewClientTLSFromCert(nil, url),
)
as dialoption in client.

Christian Svensson

unread,
May 25, 2016, 5:29:21 AM5/25/16
to sad...@thetigerworks.com, grpc.io
Just a hint: you can use nghttpx if you want to actually use HTTP/2.

--
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/f07b90a1-9143-481e-833f-536d9c7c536c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages