mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-05-03 13:16:06 +02:00
Make rate limit configurable; closes #1695
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| API Rate Limits
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Defines the rate limit for the number of requests per minute that can be
|
||||
| executed against both the client and internal (application) APIs over the
|
||||
| defined period (by default, 1 minute).
|
||||
|
|
||||
*/
|
||||
'rate_limit' => [
|
||||
'client_period' => 1,
|
||||
'client' => env('APP_API_CLIENT_RATELIMIT', 240),
|
||||
|
||||
'application_period' => 1,
|
||||
'application' => env('APP_API_APPLICATION_RATELIMIT', 240),
|
||||
],
|
||||
];
|
||||
@@ -223,5 +223,7 @@ return [
|
||||
|
|
||||
| 'P_SERVER_CREATED_AT' => 'created_at'
|
||||
*/
|
||||
'environment_variables' => [],
|
||||
'environment_variables' => [
|
||||
'P_SERVER_ALLOCATION_LIMIT' => 'allocation_limit',
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user