http://nginx.org/en/docs/http/ngx_http_limit_req_module.html#limit_req
So the limit_req module does not allow if statements wrapped around its variables if it did i would easily do the following.
limit_req_zone $binary_remote_addr zone=one:10m rate=30r/m;
if ($cookie_logged_in = "1") {
limit_req zone=one;
}
Whats the correct way to do the above with Lua