Compare commits

...
This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.

2 Commits

Author SHA1 Message Date
Karol Wypchlo daa6ef9917
test streaming 2022-03-10 12:35:55 +01:00
Karol Wypchlo dca037a5d1
test streaming 2022-03-10 12:33:22 +01:00
1 changed files with 0 additions and 7 deletions

View File

@ -1,6 +1,5 @@
include /etc/nginx/conf.d/include/cors; include /etc/nginx/conf.d/include/cors;
include /etc/nginx/conf.d/include/proxy-buffer; include /etc/nginx/conf.d/include/proxy-buffer;
include /etc/nginx/conf.d/include/proxy-cache-downloads;
include /etc/nginx/conf.d/include/track-download; include /etc/nginx/conf.d/include/track-download;
limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time
@ -57,12 +56,6 @@ access_by_lua_block {
if require("skynet.blocklist").is_blocked(ngx.var.skylink_v1) then if require("skynet.blocklist").is_blocked(ngx.var.skylink_v1) then
return require("skynet.blocklist").exit_illegal() return require("skynet.blocklist").exit_illegal()
end end
-- if skylink is found on nocache list then set internal nocache variable
-- to tell nginx that it should not try and cache this file (too large)
if ngx.shared.nocache:get(ngx.var.skylink_v1) then
ngx.var.nocache = "1"
end
end end
if require("skynet.account").accounts_enabled() then if require("skynet.account").accounts_enabled() then