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