File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
roles/services/frontend/templates Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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`.
1414proxy_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/
1618limit_req_zone $binary_remote_addr zone=search_reqs:10m rate=200r/s;
1719limit_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;
You can’t perform that action at this time.
0 commit comments