rate limiting - Does nginx HttpLimitReqModule support per hour/day/week? -
I want to resolve the rate limit for the HP API, NGN already has a module support for this feature . But look at the document, this module only supports per second and per minute. Any solution for hourly / day?
I do not know about the function within nginx which is this. However, you can use the auth_request module for all the incoming traffic in an upstream web service that inspects traffic and rates apply the limited rules.
place / {auth_request / ratelimiter; .. normal configuration setting} location / resellimeter {proxy_pass http: // internatelimitinghost; # To return the request, an HTTP will return to 200 # and return anything to deny it. The module is not included by default, so you need to compile it would be required.
Comments
Post a Comment