HTTPS Rate limiting to prevent DDoS attacks

Hi, I am trying to add a rate limit middleware to traefik but it is not working. I am wondering if rate limit middleware only works with HTTP, not HTTPS?

I followed this guide:-

I want to add this type of functionality to my website:-

A newbie to traefik 2, appreciate it if someone helps me out here, thanks