mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 05:14:10 -07:00
Update install_rate_limit_tpl.sh
This commit is contained in:
parent
4c6628822a
commit
cdcc726ac7
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue