Skip to content

Commit b3f5f00

Browse files
committed
Temporarily disable request and connection limits.
1 parent 66bf017 commit b3f5f00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roles/services/frontend/templates/nginx-frontend.conf.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ proxy_cache_path {{ frontend_cache_path }}/thumbnail levels=1:2 keys_zone=thumbn
1313
# Allow hole-punching in proxy with `?nocache=true`.
1414
proxy_cache_bypass $cookie_nocache $arg_nocache;
1515

16+
# TODO: Whitelist for load testing.
17+
# https://gadelkareem.com/2012/03/25/limit-requests-per-ip-on-nginx-using-httplimitzonemodule-and-httplimitreqmodule-except-whitelist/
1618
limit_req_zone $binary_remote_addr zone=search_reqs:10m rate=200r/s;
1719
limit_conn_zone $binary_remote_addr zone=search_conns:10m;
1820

@@ -83,8 +85,8 @@ server {
8385

8486
server_name {{ api_server_name }};
8587

86-
limit_req zone=search_reqs burst=300;
87-
limit_conn search_conns 200; # Concurrent requests per client IP.
88+
# limit_req zone=search_reqs burst=300;
89+
# limit_conn search_conns 200; # Concurrent requests per client IP.
8890

8991
location / {
9092
return 301 https://app.swaggerhub.com/apis-docs/ipfs-search/ipfs-search;

0 commit comments

Comments
 (0)