How to setup rate limit for /api/

Pls i need help here, i get this error on all my auth routes after returning status code of 500.
I tried adjusting the rateLimit manually but no difference. am new to strapi.