#feature: add ip operation log & sql generator
This commit is contained in:
19
config/toolbox.php
Normal file
19
config/toolbox.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'admin_ips' => array_values(array_filter(array_map(
|
||||
static fn(string $ip): string => trim($ip),
|
||||
explode(',', (string) env('TOOLBOX_ADMIN_IPS', ''))
|
||||
))),
|
||||
'operation_log' => [
|
||||
'methods' => ['POST', 'PUT', 'PATCH', 'DELETE'],
|
||||
'max_payload_length' => 2000,
|
||||
'redact_keys' => [
|
||||
'content',
|
||||
'password',
|
||||
'token',
|
||||
'authorization',
|
||||
'api_token',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user