Load balancer rate limiting

I’m migrating from an older web LAMP stack to running docker containers in Rancher. In the current setup, we have nginx setup with limit_req_zone setup so we can rate limit crawlers/bots, or any potential-evil-doers. For the Rancher setup, I setup a load balancer on my stack, but I can’t figure out how to implement rate limiting into it.

Is there some sort of configuration I can use in the custom “haproxy.cfg” section to achieve similar results? If anyone has any advice for achieving this, please let me know.