lthn.io/config/support.php

63 lines
2 KiB
PHP
Raw Permalink Normal View History

<?php
/**
* Support (SupportHost) configuration.
*/
return [
/*
|--------------------------------------------------------------------------
| Data Retention
|--------------------------------------------------------------------------
|
| Configuration for automatic cleanup of old support data.
| Conversations and related data older than the retention period
| will be purged to free up storage.
|
*/
'retention' => [
// Enable/disable automatic retention enforcement
'enabled' => env('SUPPORT_RETENTION_ENABLED', true),
// Default retention period in days if not specified in entitlements
'default_days' => env('SUPPORT_RETENTION_DEFAULT_DAYS', 365),
// Batch size for cleanup operations (to avoid memory issues)
'cleanup_batch_size' => env('SUPPORT_CLEANUP_BATCH_SIZE', 100),
// Whether to keep system notes about purged conversations
'keep_purge_notes' => env('SUPPORT_KEEP_PURGE_NOTES', true),
],
/*
|--------------------------------------------------------------------------
| File Storage
|--------------------------------------------------------------------------
|
| Configuration for support attachment storage.
|
*/
'storage' => [
// Storage disk for attachments
'disk' => env('SUPPORT_STORAGE_DISK', 'local'),
// Maximum attachment size in bytes (10MB default)
'max_attachment_size' => env('SUPPORT_MAX_ATTACHMENT_SIZE', 10 * 1024 * 1024),
// Allowed attachment mime types
'allowed_mime_types' => [
'image/jpeg',
'image/png',
'image/gif',
'image/webp',
'application/pdf',
'application/msword',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'text/plain',
'text/csv',
],
],
];