mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-21 19:03:08 +00:00
perf: limit concurrent connections
This commit is contained in:
parent
384e86ee47
commit
e8d00089b2
1 changed files with 2 additions and 0 deletions
|
@ -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/ {
|
||||
|
|
Loading…
Reference in a new issue