Skip to content

Commit f03b133

Browse files
authored
Merge pull request #15 from Jackinatox/main
corrected reinstalling behaivior
2 parents 759d857 + c92da06 commit f03b133

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

docs/api/client/servers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ curl -X POST "https://your-panel.com/api/client/servers/d3aac109/settings/reinst
11871187
Returns empty response body with status code 202.
11881188

11891189
:::warning Important
1190-
Reinstalling a server will **permanently delete all files** and reinstall the server from scratch. Make sure to create backups before reinstalling.
1190+
Reinstalling a server will just **rerun the install script** with all files still on the server. There is also no endpoint to delete all files.
11911191
:::
11921192

11931193
### Update Docker Image
@@ -2006,7 +2006,7 @@ Trigger a reinstallation of the server. This will stop the server and re-run the
20062006
**`POST /api/client/servers/{server}/settings/reinstall`**
20072007

20082008
:::warning Important
2009-
This action will delete all server files and reinstall the server from scratch. Make sure to backup important data before proceeding.
2009+
Reinstalling a server will just **rerun the install script** with all files still on the server. There is also no endpoint to delete all files.
20102010
:::
20112011

20122012
### URL Parameters

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)