From 26831e7a3eae1aba136ec0c5d0f0b77f0755c70c Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Wed, 8 Dec 2021 19:15:23 +0100 Subject: [PATCH] Limit downloads to 5 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 6b6abf19..d28f43c4 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 10; # ddos protection: max 100 downloads at a time +limit_conn downloads_by_ip 5; # 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