Repository navigation
Commit e66a139
committed
docs: define the nginx rate limit key per client
The limit_req_zone keyed on $pw_limit, but that variable was never
defined, so its value was empty and every client shared a single rate
limit bucket. A single busy client could then exhaust the shared
budget and throttle everyone.
Define $pw_limit from the client address so the limit applies per
client, and document setting it empty to exempt trusted hosts.
Signed-off-by: Robin Jarry <robin@jarry.cc>1 parent b940993 commit e66a139
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
1 | 9 | | |
2 | 10 | | |
3 | 11 | | |
| |||
0 commit comments