set limits
This commit is contained in:
parent
3297cc0f88
commit
a235dd6629
|
@ -40,8 +40,8 @@ access_by_lua_block {
|
||||||
-- get account limits of currently authenticated user
|
-- get account limits of currently authenticated user
|
||||||
local limits = accounts.get_account_limits()
|
local limits = accounts.get_account_limits()
|
||||||
|
|
||||||
-- -- apply download speed limit
|
-- apply download speed limit
|
||||||
-- ngx.var.limit_rate = limits.download
|
ngx.var.limit_rate = limits.download
|
||||||
end
|
end
|
||||||
-- -- the block below only makes sense if we are using nginx cache
|
-- -- the block below only makes sense if we are using nginx cache
|
||||||
-- if not ngx.var.skyd_disk_cache_enabled then
|
-- if not ngx.var.skyd_disk_cache_enabled then
|
||||||
|
|
Reference in New Issue