Files
zemailnator/config/filament-log-viewer.php
idevakk c312ec3325 feat: Prepare Zemailnator for Dokploy deployment
- Add highly optimized Dockerfile with Nginx and PHP-FPM 8.4
- Add docker-compose.yml configured with Redis and MariaDB 10.11
- Implement entrypoint.sh and supervisord.conf for background workers
- Refactor legacy IMAP scripts into scheduled Artisan Commands
- Secure app by removing old routes with hardcoded basic auth credentials
- Configure email attachments to use Laravel Storage instead of insecure public/tmp
2026-02-28 23:17:39 +05:30

120 lines
3.7 KiB
PHP

<?php
declare(strict_types=1);
return [
/* -----------------------------------------------------------------
| Driver
| -----------------------------------------------------------------
| Available drivers: 'daily', 'stack', 'raw'
| -----------------------------------------------------------------
*/
'driver' => env('FILAMENT_LOG_VIEWER_DRIVER', env('LOG_CHANNEL', 'stack')),
/* -----------------------------------------------------------------
| Resource configuration
| -----------------------------------------------------------------
*/
'resource' => [
'slug' => 'logs',
'cluster' => null,
],
/* -----------------------------------------------------------------
| Logs files can be cleared
| -----------------------------------------------------------------
*/
'clearable' => env('FILAMENT_LOG_VIEWER_CLEARABLE', false),
/* -----------------------------------------------------------------
| Log files storage path
| -----------------------------------------------------------------
*/
'storage_path' => storage_path('logs'),
/* -----------------------------------------------------------------
| Log files pattern
| -----------------------------------------------------------------
*/
'pattern' => [
'prefix' => 'laravel-',
'date' => '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]',
'extension' => '.log',
],
/* -----------------------------------------------------------------
| Log entries per page
| -----------------------------------------------------------------
| This defines how many logs and entries are displayed per page.
*/
'per-page' => [
5,
10,
25,
30,
],
/* -----------------------------------------------------------------
| Download settings
| -----------------------------------------------------------------
*/
'download' => [
'prefix' => 'laravel-',
'extension' => 'log',
],
/* -----------------------------------------------------------------
| Icons
| -----------------------------------------------------------------
*/
'icons' => [
'all' => 'fas-list', // http://fontawesome.io/icon/list/
'emergency' => 'fas-bug', // http://fontawesome.io/icon/bug/
'alert' => 'fas-bullhorn', // http://fontawesome.io/icon/bullhorn/
'critical' => 'fas-heartbeat', // http://fontawesome.io/icon/heartbeat/
'error' => 'fas-times-circle', // http://fontawesome.io/icon/times-circle/
'warning' => 'fas-exclamation-triangle', // http://fontawesome.io/icon/exclamation-triangle/
'notice' => 'fas-exclamation-circle', // http://fontawesome.io/icon/exclamation-circle/
'info' => 'fas-info-circle', // http://fontawesome.io/icon/info-circle/
'debug' => 'fas-life-ring', // http://fontawesome.io/icon/life-ring/
],
/* -----------------------------------------------------------------
| Colors
| -----------------------------------------------------------------
*/
'colors' => [
'levels' => [
'all' => '#8A8A8A',
'emergency' => '#B71C1C',
'alert' => '#D32F2F',
'critical' => '#F44336',
'error' => '#FF5722',
'warning' => '#FF9100',
'notice' => '#4CAF50',
'info' => '#1976D2',
'debug' => '#90CAF9',
],
],
/* -----------------------------------------------------------------
| Strings to highlight in stack trace
| -----------------------------------------------------------------
*/
'highlight' => [
'^#\d+', '^Stack trace:',
],
];