fabio icon indicating copy to clipboard operation
fabio copied to clipboard

How to get the client's hostname using gRPC protocol

Open alexandu12 opened this issue 3 years ago • 1 comments

Hello,

I would like to know if there is a way to get the client's hostname using Fabio as LB and gRPC protocol.

The setup is : gRPC server - Consul - fabio LB

Right now, the gRPC header remote-addr returns the hostname where fabio is installed. Besides this, I would have expected to have other headers set like: Forwarded, X-Real-Ip, X-Forwarded-For, X-Forwarded-Port and X-Forwarded-Proto, but actually none of them are present.... Is this the expected behavior for gRPC ? https://fabiolb.net/feature/http-headers/

I've tried to configure Fabio to add some headers but none of these seems to work.... proxy.header.clientip, proxy.header.tls and proxy.header.tls.value

Thank you,

alexandu12 avatar Aug 03 '20 12:08 alexandu12

Does anyone knows if Fabio (with gRPC protocol) supports this ?

alexandu12 avatar Sep 29 '20 14:09 alexandu12