http - Nginx limit requests by parameter in body or query? -


i need limit (get,post) requests specific parameter containing in body or query parameters. how configure nginx that?

current nginx config:

limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s; server {     listen       8044;     limit_req_log_level warn;     location /route/{        limit_req zone=mylimit burst=1000;        proxy_pass https://the_cool_server/;  }} 

for example- request like:

http://localhost:8044/route/path1/path2?param1=param1value_to_limit1&param2valueawesome

i need nginx limit requests param1 value per second. so, every request same param1 should limited 10 per second.

maybe should use openresty it?


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -