24 lines
716 B
PHP
24 lines
716 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
$env = env('APP_ENV', 'production');
|
|
$defaultPerMinute = in_array($env, ['local', 'testing'], true) ? 1000 : 60;
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Public routes rate limit
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Max requests per minute per IP for the public landing page and subscribe
|
|
| endpoint. Local and testing use a high default so refresh-heavy dev work
|
|
| does not hit 429. Override with PUBLIC_REQUESTS_PER_MINUTE in .env.
|
|
|
|
|
*/
|
|
|
|
'public_requests_per_minute' => (int) env('PUBLIC_REQUESTS_PER_MINUTE', (string) $defaultPerMinute),
|
|
|
|
];
|