diff --git a/conf/nginx.conf b/conf/nginx.conf index 101c31f0..4147d649 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -15,6 +15,9 @@ http { #include /etc/nginx/fastcgi.conf; index index.html index.htm index.php; + limit_req_zone $binary_remote_addr zone=one:10m rate=40r/m; + limit_conn_zone $binary_remote_addr zone=addr:10m; + default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] $status ' @@ -37,6 +40,8 @@ http { access_log logs/balsam.access.log main; location / { + + limit_req zone=one burst=15; proxy_pass http://balsam; include uwsgi_params;