Real IP for Traefik container

I want to get real IP address for my Traefik container, but…

incus config device add traefik port80 proxy listen=tcp:0.0.0.0:80 connect=tcp:127.0.0.1:80

works, and…

incus config device add traefik port80 proxy listen=tcp:0.0.0.0:80 connect=tcp:127.0.0.1:80 proxy_protocol=true

does not.

I even tried simple Node.js server to serve the requests but the same results. It worked without the “proxy_protocol”. It looks like the server can’t consume the request or something.

Any pointers, please?

Does Traefik support the HAProxy Proxy Protocol header for ingress connections?

Yes it does. I’ve just realized you have to define proxyProtocol.trustedIPs or proxyProtocol.insecure in your config to make it work properly. Thanks for the nudge!