Make rate limit configurable; closes #1695

This commit is contained in:
Dane Everitt 2020-07-02 21:11:16 -07:00
parent fde8465f35
commit e95a532da9
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 32 additions and 5 deletions

21
config/http.php Normal file
View file

@ -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),
],
];