perf: limit concurrent connections

This commit is contained in:
Alessandro Pezzè 2021-03-23 19:21:01 +01:00
parent 384e86ee47
commit e8d00089b2

View file

@ -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/ {