2018-01-16 18:57:27 +01:00
|
|
|
rules {
|
2018-12-15 21:23:42 +01:00
|
|
|
QUARANTINE {
|
|
|
|
backend = "http";
|
|
|
|
url = "http://nginx:9081/pipe.php";
|
|
|
|
selector = "is_reject";
|
|
|
|
formatter = "default";
|
|
|
|
meta_headers = true;
|
|
|
|
}
|
|
|
|
RLINFO {
|
|
|
|
backend = "http";
|
|
|
|
url = "http://nginx:9081/pipe_rl.php";
|
|
|
|
selector = "ratelimited";
|
|
|
|
formatter = "json";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_select {
|
|
|
|
ratelimited = <<EOD
|
|
|
|
return function(task)
|
|
|
|
local ratelimited = task:get_symbol("RATELIMITED")
|
|
|
|
if ratelimited then
|
|
|
|
return true
|
|
|
|
end
|
2019-05-01 22:50:38 +02:00
|
|
|
return false
|
2018-12-15 21:23:42 +01:00
|
|
|
end
|
|
|
|
EOD;
|
2018-01-16 18:57:27 +01:00
|
|
|
}
|