From 5eb013cdf8c75c7d0c7edcdc0a9e7af6a77f2540 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Mon, 14 Mar 2022 18:23:56 +0100 Subject: [PATCH] more --- docker/nginx/conf.d/include/location-skylink | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/nginx/conf.d/include/location-skylink b/docker/nginx/conf.d/include/location-skylink index 3e5a2243..88203c7d 100644 --- a/docker/nginx/conf.d/include/location-skylink +++ b/docker/nginx/conf.d/include/location-skylink @@ -32,14 +32,14 @@ access_by_lua_block { return accounts.exit_access_unauthorized() end --- -- check if portal is in subscription only mode --- if accounts.is_access_forbidden() then --- return accounts.exit_access_forbidden() --- end --- + -- check if portal is in subscription only mode + if accounts.is_access_forbidden() then + return accounts.exit_access_forbidden() + end + -- -- get account limits of currently authenticated user -- local limits = accounts.get_account_limits() --- + -- -- apply download speed limit -- ngx.var.limit_rate = limits.download end