Traefik v2 X-Forwarded-For append multiple ip addresses

Hello everyone,
we use traefik as a proxy in front of nomad cluster running docker containers.
We use traefik with consul catalog, everything work fine, but what we noticed is that for some reason traefik append the balancer IP into the X-Forwarded-For header, together with the real client ip address, and we were wondering is there a way to set this.
Here is a simple explanation:
I have an nginx webserver which proxy-pass the request to traefik v2 balancer which pass it to the container. On nginx I`ve set up "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for" and on traefik I have configuration to trust the balancer, and I see the client ip in the traefik logs, then on the container the X-Forwarded-For header is array of two elements, which contains the IP address of the client and the IP address of the nginx loadbalancer.

client ( --> nginx (private ip: Set X-Forwarded-For: --> traefik (can see X-Forwarded-For: --> docker container (get a value X-Forwarded-For: [,]).
Here is the traefik entrypoint config:

    address = ":80"
        insecure = true
    address = ":9000"
  level = "info"
  filePath = "/var/log/traefik/traefik.log"
  format = "common"

I will appriciate any help on that.

Hello @skolev,

Thanks for your interest in Traefik!

You have posted your question in the wrong forum section. For questions related to Traefik v2, use the following section:

Ouu, sorry for that,
I do not see how I can move the topic, so I will open another one in the right section.