all found?
This commit is contained in:
parent
a235dd6629
commit
f367e013f1
|
@ -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
|
||||
|
|
Reference in New Issue