How to get ingress HTTP and egress Proxy Protocol

Hello there,

Is it possible to have an ingress which has HTTPS (and an http redirect to https)
But an egress which uses the Proxy Protocol? Either via IP or maybe even a sock file?

I'm not really able to get this to work for some reason, and maybe I'm looking in the wrong locations for examples or documentation.

If someone has an example which can do this or the correct documentation where this is described, that would be cool.

Thanks in advance!

It seems ProxyProtocol for proxied/forwarded requests is only supported on TCP services (doc) in dynamic config file. We discussed something similar some weeks ago, check example.

Yea, saw that one. But that uses a different entry point. And doesn't convert http to proxy protocol.
It needs proxy protocol either from the start or fully tcp, which then renders the middlewares like compress etc., useless.

Yes. ProxyProtocol for proxied requests seems to only work for TCP services, so only for TCP routers, which work with HostSNI() and do not support HTTP middlewares.

You could create a feature request to support ProxyProtocol on http services on Traefik Github.

If you want to use http, why not simply use http headers X-Forwarded-For and X-Real-Ip

That is what i use now. I just wondered if this would be possible. It's not a big deal.

Thanks for the information!