From f367e013f1d59e21d905620c9d61dd58141a6da5 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Mon, 14 Mar 2022 18:34:13 +0100 Subject: [PATCH] all found? --- docker/nginx/conf.d/include/location-skylink | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/nginx/conf.d/include/location-skylink b/docker/nginx/conf.d/include/location-skylink index fc835752..559b2d94 100644 --- a/docker/nginx/conf.d/include/location-skylink +++ b/docker/nginx/conf.d/include/location-skylink @@ -41,7 +41,7 @@ access_by_lua_block { local limits = accounts.get_account_limits() -- apply download speed limit - ngx.var.limit_rate = limits.download +-- 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 @@ -85,9 +85,9 @@ access_by_lua_block { } header_filter_by_lua_block { --- ngx.header["Skynet-Portal-Api"] = ngx.var.scheme .. "://" .. ngx.var.skynet_portal_domain --- ngx.header["Skynet-Server-Api"] = ngx.var.scheme .. "://" .. ngx.var.skynet_server_domain --- + ngx.header["Skynet-Portal-Api"] = ngx.var.scheme .. "://" .. ngx.var.skynet_portal_domain + ngx.header["Skynet-Server-Api"] = ngx.var.scheme .. "://" .. ngx.var.skynet_server_domain + -- -- the block below only makes sense if we are using nginx cache -- if not ngx.var.skyd_disk_cache_enabled then -- -- not empty skynet_proof means this is a skylink v2 request