Limit api requests across a strapi application

Hi

Im looking to see if i can limit the API calls for a strapi server to X number a month (something like a million, but just to ensure the server is not overloaded).

I have been looking into the rateLimit and have a setup that works to a degree, but appears to work on a per user/per api request.
{
// Define rate limiting middleware with custom configuration
name: ‘plugin::users-permissions.rateLimit’,
config: {
// Rate limiting configuration here
max: 1, // Max requests
interval: {month: 1},
message: “Rate limit exceeded”,
}
}

so running this will mean that a user can trigger the api 1 per month, but 2 differnet end points and not stacked together.

Anyone ever done anything similar and can point in a direction for reference. Thanks