From 993ef93fb03778b1b9b4a976fb2ba03415d139ed Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 11 Mar 2022 09:12:46 +0100 Subject: [PATCH] foo --- docker/nginx/conf.d/include/location-skylink | 9 --------- 1 file changed, 9 deletions(-) diff --git a/docker/nginx/conf.d/include/location-skylink b/docker/nginx/conf.d/include/location-skylink index 9171e0f9..17661507 100644 --- a/docker/nginx/conf.d/include/location-skylink +++ b/docker/nginx/conf.d/include/location-skylink @@ -3,19 +3,10 @@ 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; -limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time - # ensure that skylink that we pass around is base64 encoded (transform base32 encoded ones) # this is important because we want only one format in cache keys and logs set_by_lua_block $skylink { return require("skynet.skylink").parse(ngx.var.skylink) } -# default download rate to unlimited -set $limit_rate 0; - -limit_rate_after 512k; -limit_rate $limit_rate; - -proxy_read_timeout 600; proxy_set_header User-Agent: Sia-Agent; proxy_pass http://sia:9980/skynet/skylink/$skylink$path$is_args$args;