Forwarding the clients ip
Add the below middleware:
http:  middlewares:    # Middlewaremiddleware to ensure the client's IP address is forwarded correctlycorrectly:
http:
  middlewares:
    forwardClientIPHeaders:
      headers:
        customRequestHeaders:
          X-Forwarded-For: ""  # Traefik will populate this with the actual client IP address
    