diff --git a/roles/nginx/defaults/main.yml b/roles/nginx/defaults/main.yml index 78a680b..9d07933 100644 --- a/roles/nginx/defaults/main.yml +++ b/roles/nginx/defaults/main.yml @@ -97,7 +97,7 @@ nginx_ssl_protocols: nginx_dos_whitelisted_ip: [] # Max number of request per second, per IP address for non whitelisted IP -nginx_req_per_sec: 25 +nginx_req_per_sec: 30 # Max size of the cache on disk nginx_cache_size: 2g diff --git a/roles/nginx/templates/ansible_conf.d/30-vhosts.conf.j2 b/roles/nginx/templates/ansible_conf.d/30-vhosts.conf.j2 index e792bec..c7a30bd 100644 --- a/roles/nginx/templates/ansible_conf.d/30-vhosts.conf.j2 +++ b/roles/nginx/templates/ansible_conf.d/30-vhosts.conf.j2 @@ -117,7 +117,7 @@ server { {% endif %} {% if vhost.limits %} - limit_req zone=limit_req_std burst=100 nodelay; + limit_req zone=limit_req_std burst=200 nodelay; limit_conn limit_conn_std 80; {% endif %}