Skip to content

Commit 442ed36

Browse files
authored
Add limit_req_zone to Nginx hosting config (#35052)
1 parent c55b659 commit 442ed36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

aspnetcore/blazor/host-and-deploy/webassembly.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,10 +556,11 @@ http {
556556
}
557557
```
558558

559-
When setting the [NGINX burst rate limit](https://www.nginx.com/blog/rate-limiting-nginx/#bursts) with [`limit_req`](https://nginx.org/docs/http/ngx_http_limit_req_module.html#limit_req), Blazor WebAssembly apps may require a large `burst` parameter value to accommodate the relatively large number of requests made by an app. Initially, set the value to at least 60:
559+
When setting the [NGINX burst rate limit](https://www.nginx.com/blog/rate-limiting-nginx/#bursts) with [`limit_req`](https://nginx.org/docs/http/ngx_http_limit_req_module.html#limit_req) and [`limit_req_zone`](https://nginx.org/docs/http/ngx_http_limit_req_module.html), Blazor WebAssembly apps may require a large `burst`/`rate` parameter values to accommodate the relatively large number of requests made by an app. Initially, set the value to at least 60:
560560

561561
```
562562
http {
563+
limit_req_zone $binary_remote_addr zone=one:10m rate=60r/s;
563564
server {
564565
...
565566

0 commit comments

Comments
 (0)