...
|
...
|
@@ -45,6 +45,10 @@ function do_degrade() |
|
|
|
|
|
if limit_ip_config and limit_ip_config.degrades and limit_ip_config.degrades[method] then
|
|
|
ngx.log(ngx.ERR, "[Degraded]: ", method)
|
|
|
for k, v in pairs(limit_ip_access.degrades) do
|
|
|
print(k)
|
|
|
print(v)
|
|
|
end
|
|
|
local err_code = limit_ip_config.degrades[method]
|
|
|
local err_msg = default_err_msg
|
|
|
ngx.header["Content-Type"]="application/json;charset=utf-8"
|
...
|
...
|
|