all found?

This commit is contained in:
Ivaylo Novakov 2022-03-14 18:34:13 +01:00
parent a235dd6629
commit f367e013f1
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 4 additions and 4 deletions

View File

@ -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