coolify/config/telescope.php

223 lines
7.2 KiB
PHP
Raw Normal View History

2024-08-23 14:53:13 +00:00
<?php
use Laravel\Telescope\Http\Middleware\Authorize;
2025-01-07 13:52:08 +00:00
use Laravel\Telescope\Watchers\BatchWatcher;
use Laravel\Telescope\Watchers\CacheWatcher;
use Laravel\Telescope\Watchers\ClientRequestWatcher;
use Laravel\Telescope\Watchers\CommandWatcher;
use Laravel\Telescope\Watchers\DumpWatcher;
use Laravel\Telescope\Watchers\EventWatcher;
use Laravel\Telescope\Watchers\ExceptionWatcher;
use Laravel\Telescope\Watchers\GateWatcher;
use Laravel\Telescope\Watchers\JobWatcher;
use Laravel\Telescope\Watchers\LogWatcher;
use Laravel\Telescope\Watchers\MailWatcher;
use Laravel\Telescope\Watchers\ModelWatcher;
use Laravel\Telescope\Watchers\NotificationWatcher;
use Laravel\Telescope\Watchers\QueryWatcher;
use Laravel\Telescope\Watchers\RedisWatcher;
use Laravel\Telescope\Watchers\RequestWatcher;
use Laravel\Telescope\Watchers\ScheduleWatcher;
use Laravel\Telescope\Watchers\ViewWatcher;
2024-08-23 14:53:13 +00:00
return [
/*
|--------------------------------------------------------------------------
| Telescope Master Switch
|--------------------------------------------------------------------------
|
| This option may be used to disable all Telescope watchers regardless
| of their individual configuration, which simply provides a single
| and convenient way to enable or disable Telescope data storage.
|
*/
2024-08-23 15:33:00 +00:00
'enabled' => env('TELESCOPE_ENABLED', false),
2024-08-23 14:53:13 +00:00
/*
|--------------------------------------------------------------------------
| Telescope Domain
|--------------------------------------------------------------------------
|
| This is the subdomain where Telescope will be accessible from. If the
| setting is null, Telescope will reside under the same domain as the
| application. Otherwise, this value will be used as the subdomain.
|
*/
'domain' => env('TELESCOPE_DOMAIN'),
/*
|--------------------------------------------------------------------------
| Telescope Path
|--------------------------------------------------------------------------
|
| This is the URI path where Telescope will be accessible from. Feel free
| to change this path to anything you like. Note that the URI will not
| affect the paths of its internal API that aren't exposed to users.
|
*/
'path' => env('TELESCOPE_PATH', 'telescope'),
/*
|--------------------------------------------------------------------------
| Telescope Storage Driver
|--------------------------------------------------------------------------
|
| This configuration options determines the storage driver that will
| be used to store Telescope's data. In addition, you may set any
| custom options as needed by the particular driver you choose.
|
*/
'driver' => env('TELESCOPE_DRIVER', 'database'),
'storage' => [
'database' => [
'connection' => env('DB_CONNECTION', 'pgsql'),
'chunk' => 1000,
],
],
/*
|--------------------------------------------------------------------------
| Telescope Queue
|--------------------------------------------------------------------------
|
| This configuration options determines the queue connection and queue
| which will be used to process ProcessPendingUpdate jobs. This can
| be changed if you would prefer to use a non-default connection.
|
*/
'queue' => [
2024-11-02 17:32:45 +00:00
'connection' => env('TELESCOPE_QUEUE_CONNECTION', 'redis'),
'queue' => env('TELESCOPE_QUEUE', 'default'),
2024-08-23 14:53:13 +00:00
],
/*
|--------------------------------------------------------------------------
| Telescope Route Middleware
|--------------------------------------------------------------------------
|
| These middleware will be assigned to every Telescope route, giving you
| the chance to add your own middleware to this list or change any of
| the existing middleware. Or, you can simply stick with this list.
|
*/
'middleware' => [
'web',
Authorize::class,
],
/*
|--------------------------------------------------------------------------
| Allowed / Ignored Paths & Commands
|--------------------------------------------------------------------------
|
| The following array lists the URI paths and Artisan commands that will
| not be watched by Telescope. In addition to this list, some Laravel
| commands, like migrations and queue commands, are always ignored.
|
*/
'only_paths' => [
// 'api/*'
],
'ignore_paths' => [
'livewire*',
'nova-api*',
'pulse*',
],
'ignore_commands' => [
//
],
/*
|--------------------------------------------------------------------------
| Telescope Watchers
|--------------------------------------------------------------------------
|
| The following array lists the "watchers" that will be registered with
| Telescope. The watchers gather the application's profile data when
| a request or task is executed. Feel free to customize this list.
|
*/
'watchers' => [
2025-01-07 13:52:08 +00:00
BatchWatcher::class => env('TELESCOPE_BATCH_WATCHER', true),
2024-08-23 14:53:13 +00:00
2025-01-07 13:52:08 +00:00
CacheWatcher::class => [
2024-08-23 14:53:13 +00:00
'enabled' => env('TELESCOPE_CACHE_WATCHER', true),
'hidden' => [],
],
2025-01-07 13:52:08 +00:00
ClientRequestWatcher::class => env('TELESCOPE_CLIENT_REQUEST_WATCHER', true),
2024-08-23 14:53:13 +00:00
2025-01-07 13:52:08 +00:00
CommandWatcher::class => [
2024-08-23 14:53:13 +00:00
'enabled' => env('TELESCOPE_COMMAND_WATCHER', true),
'ignore' => [],
],
2025-01-07 13:52:08 +00:00
DumpWatcher::class => [
2024-08-23 14:53:13 +00:00
'enabled' => env('TELESCOPE_DUMP_WATCHER', true),
'always' => env('TELESCOPE_DUMP_WATCHER_ALWAYS', false),
],
2025-01-07 13:52:08 +00:00
EventWatcher::class => [
2024-08-23 14:53:13 +00:00
'enabled' => env('TELESCOPE_EVENT_WATCHER', true),
'ignore' => [],
],
2025-01-07 13:52:08 +00:00
ExceptionWatcher::class => env('TELESCOPE_EXCEPTION_WATCHER', true),
2024-08-23 14:53:13 +00:00
2025-01-07 13:52:08 +00:00
GateWatcher::class => [
2024-11-02 11:09:33 +00:00
'enabled' => env('TELESCOPE_GATE_WATCHER', true),
2024-08-23 14:53:13 +00:00
'ignore_abilities' => [],
'ignore_packages' => true,
'ignore_paths' => [],
],
2025-01-07 13:52:08 +00:00
JobWatcher::class => env('TELESCOPE_JOB_WATCHER', true),
2024-08-23 14:53:13 +00:00
2025-01-07 13:52:08 +00:00
LogWatcher::class => [
2024-08-23 14:53:13 +00:00
'enabled' => env('TELESCOPE_LOG_WATCHER', true),
2024-11-02 11:09:33 +00:00
'level' => 'error',
2024-08-23 14:53:13 +00:00
],
2025-01-07 13:52:08 +00:00
MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true),
2024-08-23 14:53:13 +00:00
2025-01-07 13:52:08 +00:00
ModelWatcher::class => [
2024-08-23 14:53:13 +00:00
'enabled' => env('TELESCOPE_MODEL_WATCHER', true),
'events' => ['eloquent.*'],
'hydrations' => true,
],
2025-01-07 13:52:08 +00:00
NotificationWatcher::class => env('TELESCOPE_NOTIFICATION_WATCHER', true),
2024-08-23 14:53:13 +00:00
2025-01-07 13:52:08 +00:00
QueryWatcher::class => [
2024-08-23 14:53:13 +00:00
'enabled' => env('TELESCOPE_QUERY_WATCHER', true),
'ignore_packages' => true,
'ignore_paths' => [],
'slow' => 100,
],
2025-01-07 13:52:08 +00:00
RedisWatcher::class => env('TELESCOPE_REDIS_WATCHER', true),
2024-08-23 14:53:13 +00:00
2025-01-07 13:52:08 +00:00
RequestWatcher::class => [
2024-08-23 14:53:13 +00:00
'enabled' => env('TELESCOPE_REQUEST_WATCHER', true),
'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64),
'ignore_http_methods' => [],
'ignore_status_codes' => [],
],
2025-01-07 13:52:08 +00:00
ScheduleWatcher::class => env('TELESCOPE_SCHEDULE_WATCHER', true),
ViewWatcher::class => env('TELESCOPE_VIEW_WATCHER', true),
2024-08-23 14:53:13 +00:00
],
];