From f05ff062d89e0a4d649f6cf47996c475036af8ff Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Mon, 11 May 2020 20:21:12 +0200 Subject: [PATCH] rate limit new definition --- .../tools/rate-limit-tpl/install_rate_limit_tpl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 8af03f140..e58c405fd 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 @@ -3,10 +3,10 @@ # This installer will install hosting-firewall.tpl (nginx template) that will: # + allow 1 http request per second per IP address (sent to your server, more precisely to your PHP-FPM) # + allow 2 parallel http connections per IP address (sent to your PHP-FPM) -# + make burst (queue) for 7 additional http requests in the same second, but it will processed each request each second (so this will handle natural peaks that CMS can generate to itself) -# + if client fills allowed queue , additional requests will be denied +# + make burst (queue) for 7 additional http requests in the same second, first 3 will be processed immediately, 4 others will processed each request each second (so this will handle natural peaks that CMS can generate to itself) +# + 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 +# 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. grepc=$(grep -c 'limit_conn_zone' /etc/nginx/nginx.conf) if [ "$grepc" -eq 0 ]; then