From cdcc726ac7187bc4d376ee1a422edeb4504dadc4 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Fri, 29 May 2020 10:09:21 +0200 Subject: [PATCH] Update install_rate_limit_tpl.sh --- .../for-download/tools/rate-limit-tpl/install_rate_limit_tpl.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/deb/for-download/tools/rate-limit-tpl/install_rate_limit_tpl.sh b/src/deb/for-download/tools/rate-limit-tpl/install_rate_limit_tpl.sh index f51c04dc4..8710008ce 100644 --- a/src/deb/for-download/tools/rate-limit-tpl/install_rate_limit_tpl.sh +++ b/src/deb/for-download/tools/rate-limit-tpl/install_rate_limit_tpl.sh @@ -7,6 +7,8 @@ # + if client fills allowed queue, additional requests will be denied # # Generally, this nginx template will prevent bad bots to run hundreds parallel http requests against your site, which will probably cause denial-of-service on your server. +# +# There are also 3 additional templates, with larger limit values (for example: 2 req/sec, 14 allowed requests in queue, 7 burst, 8 parallel connections). grepc=$(grep -c 'limit_conn_zone' /etc/nginx/nginx.conf) if [ "$grepc" -eq 0 ]; then