From e8d00089b2bd169b3193ebfe28047c002d79d94c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Tue, 23 Mar 2021 19:21:01 +0100 Subject: [PATCH] perf: limit concurrent connections --- Resources/nginx/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Resources/nginx/nginx.conf b/Resources/nginx/nginx.conf index 5773a5ce..0a633b54 100644 --- a/Resources/nginx/nginx.conf +++ b/Resources/nginx/nginx.conf @@ -56,6 +56,7 @@ http { } limit_req_zone $limit_key zone=graphqlDefaultLimit:50m rate=1r/m; + limit_conn_zone $binary_remote_addr zone=addr:20m; server { listen 80 deferred; @@ -66,6 +67,7 @@ http { client_body_timeout 5s; client_header_timeout 5s; + limit_conn addr 10; # Admin console location /graphql/admin/ {