Skip to content

Commit e8d0008

Browse files
committed
perf: limit concurrent connections
1 parent 384e86e commit e8d0008

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Resources/nginx/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ http {
5656
}
5757

5858
limit_req_zone $limit_key zone=graphqlDefaultLimit:50m rate=1r/m;
59+
limit_conn_zone $binary_remote_addr zone=addr:20m;
5960

6061
server {
6162
listen 80 deferred;
@@ -66,6 +67,7 @@ http {
6667

6768
client_body_timeout 5s;
6869
client_header_timeout 5s;
70+
limit_conn addr 10;
6971

7072
# Admin console
7173
location /graphql/admin/ {

0 commit comments

Comments
 (0)