From 387c0e31c04b3692fafbafdff59e4f1b9b924fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wypch=C5=82o?= Date: Thu, 16 Jul 2020 18:31:03 +0200 Subject: [PATCH] increase download by ip limit from 10 to 100 (#295) --- docker/nginx/conf.d/client.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index eee08c0d..d5127539 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -105,7 +105,7 @@ server { } location ~ "^/([a-zA-Z0-9-_]{46}(/.*)?)$" { - limit_conn downloads_by_ip 10; # ddos protection: max 10 downloads at a time + limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time # we need to explicitly use set directive here because $1 will contain the skylink with # decoded whitespaces and set will re-encode it for us before passing it to proxy_pass @@ -127,7 +127,7 @@ server { } location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" { - limit_conn downloads_by_ip 10; # ddos protection: max 10 downloads at a time + limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time # we need to explicitly use set directive here because $1 will contain the skylink with # decoded whitespaces and set will re-encode it for us before passing it to proxy_pass