Repository navigation
Replies: 1 comment
|
Thank you for the suggestion. The rate-limit example in the installation guide now sets |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
The installation guide's rate-limit example is not scoped to dynamic routes, so a reader can apply it to
/static. A per-client limit on static assets can delay or reject legitimate requests and degrade page loading. More information at #712.Document a route-scoped example that removes
limit_reqfrom/staticand leaves the existing limits on other routes unchanged. This change affects documentation only.Affected Version
v0.11.7
Requested Feature
Update the installation guide so that
/staticand every/static/path are outside nginx request accounting. The example should use exact and prefixlocationblocks for/staticwith nolimit_reqdirective, and should not inherit a server-levellimit_req.Proposed Implementation
docs/getting-started/installation.md:1091-1094with a route-scoped example.limit_req_zonein thehttpcontext, but placelimit_reqonly in the dynamic locations, never athttporserverlevel.limit_req:/staticpath and all descendants, and that no server-levellimit_reqmay be inherited by them.Expected Behavior
/staticor/static/requests against a request-limit zone.Root Cause Analysis
The current example introduces only
limit_req_zoneandlimit_reqatdocs/getting-started/installation.md:1092-1093. It does not show thatlimit_reqmust be scoped away from/staticthroughlocationblocks.The installation guide has no other
limit_reqexample and no/staticexemption. The gap is in the deployment guidance, not in the application's rate-limit implementation.Additional Context
Official reference: Nginx
limit_reqmodule: https://nginx.org/en/docs/http/ngx_http_limit_req_module.htmlAll reactions