Skip to content

Commit b11b235

Browse files
committed
chore: mdformat
1 parent 3ca1f56 commit b11b235

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/hypernode-platform/nginx/how-to-resolve-rate-limited-requests-429-too-many-requests.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Both methods are implemented using [NginX's limit_req module](http://nginx.org/e
3434
You can quickly determine which method of Rate Limiting was the cause of the request being 429'd since each time any of the rate-limiting methods are hit, a message with be logged in the Nginx error log.
3535

3636
To look for rate limiting messages in the error log, you can run the following command:
37+
3738
```bash
3839
$ grep limiting.requests /var/log/nginx/error.log
3940
2020/06/07 13:33:37 [error] 7492#7492: *1590769 limiting requests, excess: 0.072 by zone "bots", client: 203.0.113.104, server: example.hypernode.io, request: "GET /api/ HTTP/2.0", host: "example.hypernode.io"
@@ -87,6 +88,7 @@ The keywords are separated by `|` characters since it is a regular expression.
8788
### Allowlisting Additional User Agents
8889

8990
To extend the allowlist, first determine what user agent you wish to add. Use the access log files to see what bots get blocked and which user agent identification it uses. To find the user agent, you can use the following command:
91+
9092
```bash
9193
$ pnl --today --fields time,status,remote_addr,request,user_agent --filter status=429
9294
2020-06-07T13:33:37+00:00 429 203.0.113.104 GET /api/ HTTP/2.0 SpecialSnowflakeCrawler 3.1.4
@@ -186,8 +188,8 @@ geo $conn_limit_map {
186188
default $ratelimit_request_url;
187189
}
188190
```
189-
You can also combine this with a regular allowlist, and exclude IP Addresses as described above.
190191

192+
You can also combine this with a regular allowlist, and exclude IP Addresses as described above.
191193

192194
### How to Serve a Custom Static Error Page to Rate Limited IP Addresses
193195

0 commit comments

Comments
 (0)