From 1e16caeaebec2c585d9d99db61e71bf5a26a4339 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Wed, 8 Dec 2021 19:15:00 +0100 Subject: [PATCH] Limit downloads to 10 per IP. --- docker/nginx/conf.d/include/location-skylink | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/include/location-skylink b/docker/nginx/conf.d/include/location-skylink index 5c874e90..6b6abf19 100644 --- a/docker/nginx/conf.d/include/location-skylink +++ b/docker/nginx/conf.d/include/location-skylink @@ -9,7 +9,7 @@ if ($request_method = PURGE) { return 462; } -limit_conn downloads_by_ip 20; # ddos protection: max 100 downloads at a time +limit_conn downloads_by_ip 10; # 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