Skip to content

Commit b8d312b

Browse files
committed
feat: add env override option to rate_limit.disabled_for_environments config key
1 parent 3b3a4db commit b8d312b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/image-transform-url.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,15 @@
9595
| new transformation by the path and IP address. It is recommended to
9696
| set this to a low value, e.g. 2 requests per minute, to prevent
9797
| abuse.
98+
|
9899
*/
99100

100101
'rate_limit' => [
101102
'enabled' => env('IMAGE_TRANSFORM_RATE_LIMIT_ENABLED', true),
102-
'disabled_for_environments' => [
103+
'disabled_for_environments' => env('IMAGE_TRANSFORM_RATE_LIMIT_DISABLED_FOR_ENVIRONMENTS', [
103104
'local',
104105
'testing',
105-
],
106+
]),
106107
'max_attempts' => env('IMAGE_TRANSFORM_RATE_LIMIT_MAX_REQUESTS', 2),
107108
'decay_seconds' => env('IMAGE_TRANSFORM_RATE_LIMIT_DECAY_SECONDS', 60),
108109
],

0 commit comments

Comments
 (0)