Skip to content

Commit c92da06

Browse files
committed
Add instructions for configuring API rate limits in the .env file
1 parent 6afda49 commit c92da06

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docs/rate-limiting.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,28 @@ When you exceed the rate limit, you'll receive a `429 Too Many Requests` respons
4141
}
4242
```
4343

44+
## Increasing the Rate Limit
45+
46+
You can configure the API rate limits on your Pterodactyl panel instance by editing the `.env` file. By default, these settings are not present, so you'll need to add them manually.
47+
48+
The `.env` file is typically located at:
49+
50+
```
51+
/var/www/pterodactyl/.env
52+
```
53+
54+
Add or update the following lines to set your desired rate limits (values shown are defaults):
55+
56+
```env
57+
APP_API_APPLICATION_RATELIMIT=240
58+
APP_API_CLIENT_RATELIMIT=240
59+
```
60+
61+
- `APP_API_APPLICATION_RATELIMIT`: Sets the rate limit for the Application API (requests per minute per API key).
62+
- `APP_API_CLIENT_RATELIMIT`: Sets the rate limit for the Client API (requests per minute per API key).
63+
64+
After making changes, restart your Pterodactyl panel for the new settings to take effect.
65+
4466
## Best Practices
4567

4668
### 1. Check Rate Limit Headers

0 commit comments

Comments
 (0)