|
4 | 4 |
|
5 | 5 | 'enabled' => env('FIREWALL_ENABLED', true),
|
6 | 6 |
|
7 |
| - 'whitelist' => [], |
| 7 | + 'whitelist' => [env('FIREWALL_WHITELIST', '')], |
8 | 8 |
|
9 | 9 | 'models' => [
|
10 | 10 | 'user' => '\App\User',
|
|
13 | 13 | 'responses' => [
|
14 | 14 |
|
15 | 15 | 'block' => [
|
16 |
| - 'view' => null, |
17 |
| - 'redirect' => null, |
18 |
| - 'abort' => false, |
19 |
| - 'code' => 403, |
| 16 | + 'view' => env('FIREWALL_BLOCK_VIEW', null), |
| 17 | + 'redirect' => env('FIREWALL_BLOCK_REDIRECT', null), |
| 18 | + 'abort' => env('FIREWALL_BLOCK_ABORT', false), |
| 19 | + 'code' => env('FIREWALL_BLOCK_CODE', 403), |
20 | 20 | ],
|
21 | 21 |
|
22 | 22 | ],
|
23 | 23 |
|
24 | 24 | 'notifications' => [
|
25 | 25 |
|
26 | 26 | 'mail' => [
|
27 |
| - 'enabled' => true, |
28 |
| - 'name' => 'Laravel Firewall', |
29 |
| - |
30 |
| - |
| 27 | + 'enabled' => env('FIREWALL_EMAIL_ENABLED', false), |
| 28 | + 'name' => env('FIREWALL_EMAIL_NAME', 'Laravel Firewall'), |
| 29 | + 'from' => env('FIREWALL_EMAIL_FROM', '[email protected]'), |
| 30 | + 'to' => [ env('FIREWALL_EMAIL_TO', '[email protected]')], |
31 | 31 | ],
|
32 | 32 |
|
33 | 33 | 'slack' => [
|
34 |
| - 'enabled' => false, |
35 |
| - 'from' => 'Laravel Firewall', |
36 |
| - 'to' => '#my-channel', |
37 |
| - 'emoji' => ':fire:', |
| 34 | + 'enabled' => env('FIREWALL_SLACK_ENABLED', false), |
| 35 | + 'from' => env('FIREWALL_SLACK_FROM', 'Laravel Firewall'), |
| 36 | + 'to' => env('FIREWALL_SLACK_TO', '#my-channel'), |
| 37 | + 'emoji' => env('FIREWALL_SLACK_EMOJI', ':fire:'), |
38 | 38 | ],
|
39 | 39 |
|
40 | 40 | ],
|
|
0 commit comments