2022-08-24 00:33:28 +02:00
|
|
|
<?php
|
|
|
|
|
2023-04-17 13:51:35 +02:00
|
|
|
/*
|
2022-08-24 00:33:28 +02:00
|
|
|
| !!!! DO NOT EDIT THIS FILE !!!!
|
|
|
|
|
|
|
|
|
| You can change settings by setting them in the environment or .env
|
|
|
|
| If there is something you need to change, but is not available as an environment setting,
|
|
|
|
| request an environment variable to be created upstream or send a pull request.
|
|
|
|
*/
|
|
|
|
|
2023-04-17 13:51:35 +02:00
|
|
|
use Spatie\FlareClient\FlareMiddleware\AddGitInformation;
|
|
|
|
use Spatie\FlareClient\FlareMiddleware\CensorRequestBodyFields;
|
|
|
|
use Spatie\FlareClient\FlareMiddleware\CensorRequestHeaders;
|
|
|
|
use Spatie\FlareClient\FlareMiddleware\RemoveRequestIp;
|
|
|
|
use Spatie\LaravelIgnition\FlareMiddleware\AddDumps;
|
|
|
|
use Spatie\LaravelIgnition\FlareMiddleware\AddEnvironmentInformation;
|
|
|
|
use Spatie\LaravelIgnition\FlareMiddleware\AddExceptionInformation;
|
|
|
|
use Spatie\LaravelIgnition\FlareMiddleware\AddJobs;
|
|
|
|
use Spatie\LaravelIgnition\FlareMiddleware\AddLogs;
|
|
|
|
use Spatie\LaravelIgnition\FlareMiddleware\AddNotifierName;
|
|
|
|
use Spatie\LaravelIgnition\FlareMiddleware\AddQueries;
|
|
|
|
|
|
|
|
return [
|
|
|
|
/*
|
2023-03-13 22:32:22 +01:00
|
|
|
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Flare API key
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Specify Flare's API key below to enable error reporting to the service.
|
|
|
|
|
|
|
|
|
| More info: https://flareapp.io/docs/general/projects
|
|
|
|
|
|
|
|
|
*/
|
2022-08-24 00:33:28 +02:00
|
|
|
|
2023-04-17 13:51:35 +02:00
|
|
|
'key' => env('FLARE_KEY', 'quYFBTFNKHLBqFCoeo5yDVOQNbs6muV1'),
|
2022-08-24 00:33:28 +02:00
|
|
|
|
2023-04-17 13:51:35 +02:00
|
|
|
/*
|
2023-03-13 22:32:22 +01:00
|
|
|
|--------------------------------------------------------------------------
|
2023-04-17 13:51:35 +02:00
|
|
|
| Middleware
|
2023-03-13 22:32:22 +01:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2023-04-17 13:51:35 +02:00
|
|
|
| These middleware will modify the contents of the report sent to Flare.
|
2023-03-13 22:32:22 +01:00
|
|
|
|
|
|
|
|
*/
|
2022-08-24 00:33:28 +02:00
|
|
|
|
2023-04-17 13:51:35 +02:00
|
|
|
'flare_middleware' => [
|
|
|
|
RemoveRequestIp::class,
|
|
|
|
//AddGitInformation::class,
|
|
|
|
AddNotifierName::class,
|
|
|
|
AddEnvironmentInformation::class,
|
|
|
|
AddExceptionInformation::class,
|
|
|
|
AddDumps::class,
|
|
|
|
/*
|
|
|
|
AddLogs::class => [
|
|
|
|
'maximum_number_of_collected_logs' => 200,
|
|
|
|
],
|
|
|
|
*/
|
|
|
|
AddQueries::class => [
|
|
|
|
'maximum_number_of_collected_queries' => 50,
|
|
|
|
'report_query_bindings' => true,
|
|
|
|
],
|
|
|
|
AddJobs::class => [
|
|
|
|
'max_chained_job_reporting_depth' => 5,
|
|
|
|
],
|
|
|
|
CensorRequestBodyFields::class => [
|
|
|
|
'censor_fields' => [
|
|
|
|
'password',
|
|
|
|
'password_confirmation',
|
|
|
|
// LibreNMS
|
|
|
|
'username',
|
|
|
|
'sysContact',
|
|
|
|
'community',
|
|
|
|
'authname',
|
|
|
|
'authpass',
|
|
|
|
'cryptopass',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
CensorRequestHeaders::class => [
|
|
|
|
'headers' => [
|
|
|
|
'API-KEY',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2022-08-24 00:33:28 +02:00
|
|
|
|
2023-04-17 13:51:35 +02:00
|
|
|
/*
|
2023-03-13 22:32:22 +01:00
|
|
|
|--------------------------------------------------------------------------
|
2023-04-17 13:51:35 +02:00
|
|
|
| Reporting log statements
|
2023-03-13 22:32:22 +01:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| If this setting is `false` log statements won't be sent as events to Flare,
|
|
|
|
| no matter which error level you specified in the Flare log channel.
|
|
|
|
|
|
|
|
|
*/
|
2022-08-24 00:33:28 +02:00
|
|
|
|
2023-04-17 13:51:35 +02:00
|
|
|
'send_logs_as_events' => false,
|
|
|
|
];
|