From a235dd6629cbd7a9240ea358690f2cac2964a419 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Mon, 14 Mar 2022 18:30:44 +0100 Subject: [PATCH] set limits --- docker/nginx/conf.d/include/location-skylink | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/nginx/conf.d/include/location-skylink b/docker/nginx/conf.d/include/location-skylink index bcd74e55..fc835752 100644 --- a/docker/nginx/conf.d/include/location-skylink +++ b/docker/nginx/conf.d/include/location-skylink @@ -40,8 +40,8 @@ access_by_lua_block { -- get account limits of currently authenticated user local limits = accounts.get_account_limits() --- -- apply download speed limit --- ngx.var.limit_rate = limits.download + -- apply download speed limit + ngx.var.limit_rate = limits.download end -- -- the block below only makes sense if we are using nginx cache -- if not ngx.var.skyd_disk_cache_enabled then