mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-05-31 00:04:27 +08:00
* fix: set default for 'repository' for when the db schema doesn't * security: disable telescope by default * security: add .env files to .dockerignore * tweak: re-enable xdebug on dev worker containers * tweak: add vim to webapp image
125 lines
3.5 KiB
PHP
125 lines
3.5 KiB
PHP
<?php
|
|
|
|
use Laravel\Telescope\Http\Middleware\Authorize;
|
|
use Laravel\Telescope\Watchers;
|
|
|
|
return [
|
|
'enabled' => env('TELESCOPE_ENABLED', false),
|
|
'domain' => env('TELESCOPE_DOMAIN'),
|
|
'path' => env('TELESCOPE_PATH', 'telescope'),
|
|
'driver' => env('TELESCOPE_DRIVER', 'database'),
|
|
|
|
'storage' => [
|
|
'database' => [
|
|
'connection' => env('DB_CONNECTION', 'mysql'),
|
|
'chunk' => 1000,
|
|
],
|
|
],
|
|
|
|
'queue' => [
|
|
'connection' => env('TELESCOPE_QUEUE_CONNECTION', null),
|
|
'queue' => env('TELESCOPE_QUEUE', null),
|
|
],
|
|
|
|
'middleware' => [
|
|
'web',
|
|
Authorize::class,
|
|
],
|
|
|
|
'only_paths' => [
|
|
// 'api/*'
|
|
],
|
|
|
|
'ignore_paths' => [
|
|
'livewire*',
|
|
'nova-api*',
|
|
'pulse*',
|
|
],
|
|
|
|
'ignore_commands' => [
|
|
'migrate',
|
|
'migrate:rollback',
|
|
'migrate:fresh',
|
|
'migrate:reset',
|
|
'migrate:install',
|
|
'db:seed',
|
|
'package:discover',
|
|
'queue:listen',
|
|
'queue:work',
|
|
'horizon',
|
|
'horizon:work',
|
|
'horizon:supervisor',
|
|
],
|
|
|
|
'watchers' => [
|
|
Watchers\BatchWatcher::class => env('TELESCOPE_BATCH_WATCHER', true),
|
|
|
|
Watchers\CacheWatcher::class => [
|
|
'enabled' => env('TELESCOPE_CACHE_WATCHER', true),
|
|
'hidden' => [],
|
|
],
|
|
|
|
Watchers\ClientRequestWatcher::class => env('TELESCOPE_CLIENT_REQUEST_WATCHER', true),
|
|
|
|
Watchers\CommandWatcher::class => [
|
|
'enabled' => env('TELESCOPE_COMMAND_WATCHER', true),
|
|
'ignore' => [],
|
|
],
|
|
|
|
Watchers\DumpWatcher::class => [
|
|
'enabled' => env('TELESCOPE_DUMP_WATCHER', true),
|
|
'always' => env('TELESCOPE_DUMP_WATCHER_ALWAYS', false),
|
|
],
|
|
|
|
Watchers\EventWatcher::class => [
|
|
'enabled' => env('TELESCOPE_EVENT_WATCHER', true),
|
|
'ignore' => [],
|
|
],
|
|
|
|
Watchers\ExceptionWatcher::class => env('TELESCOPE_EXCEPTION_WATCHER', true),
|
|
|
|
Watchers\GateWatcher::class => [
|
|
'enabled' => env('TELESCOPE_GATE_WATCHER', true),
|
|
'ignore_abilities' => [],
|
|
'ignore_packages' => true,
|
|
'ignore_paths' => [],
|
|
],
|
|
|
|
Watchers\JobWatcher::class => env('TELESCOPE_JOB_WATCHER', true),
|
|
|
|
Watchers\LogWatcher::class => [
|
|
'enabled' => env('TELESCOPE_LOG_WATCHER', true),
|
|
'level' => 'error',
|
|
],
|
|
|
|
Watchers\MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true),
|
|
|
|
Watchers\ModelWatcher::class => [
|
|
'enabled' => env('TELESCOPE_MODEL_WATCHER', true),
|
|
'events' => ['eloquent.*'],
|
|
'hydrations' => true,
|
|
],
|
|
|
|
Watchers\NotificationWatcher::class => env('TELESCOPE_NOTIFICATION_WATCHER', true),
|
|
|
|
Watchers\QueryWatcher::class => [
|
|
'enabled' => env('TELESCOPE_QUERY_WATCHER', true),
|
|
'ignore_packages' => true,
|
|
'ignore_paths' => [],
|
|
'slow' => 100,
|
|
],
|
|
|
|
Watchers\RedisWatcher::class => env('TELESCOPE_REDIS_WATCHER', true),
|
|
|
|
Watchers\RequestWatcher::class => [
|
|
'enabled' => env('TELESCOPE_REQUEST_WATCHER', true),
|
|
'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64),
|
|
'ignore_http_methods' => [],
|
|
'ignore_status_codes' => [],
|
|
],
|
|
|
|
Watchers\ScheduleWatcher::class => env('TELESCOPE_SCHEDULE_WATCHER', true),
|
|
|
|
Watchers\ViewWatcher::class => env('TELESCOPE_VIEW_WATCHER', true),
|
|
],
|
|
];
|