TDH_2/config/media.php

80 lines
2.3 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Time to Live for Assets
|--------------------------------------------------------------------------
|
| Specifies the cache time-to-live, in minutes. The default value is 10.
| The cache invalidates automatically when Library items are added,
| updated or deleted.
|
*/
'item_cache_ttl' => 10,
/*
|--------------------------------------------------------------------------
| Automatically Rename Filenames
|--------------------------------------------------------------------------
|
| When a media file is uploaded, automatically transform its filename to
| something consistent. The "slug" mode will slug the file name for all
| uploads.
|
| Supported: "null", "slug"
|
*/
'auto_rename' => null,
/*
|--------------------------------------------------------------------------
| Ignored Files and Patterns
|--------------------------------------------------------------------------
|
| The media manager wil ignore file names and patterns specified here
|
*/
'ignore_files' => ['.svn', '.git', '.DS_Store', '.AppleDouble'],
'ignore_patterns' => ['^\..*'],
/*
|--------------------------------------------------------------------------
| Image Extensions
|--------------------------------------------------------------------------
|
| File extensions corresponding to the Image document type
|
*/
'image_extensions' => ['jpg', 'jpeg', 'bmp', 'png', 'webp', 'gif'],
/*
|--------------------------------------------------------------------------
| Video Extensions
|--------------------------------------------------------------------------
|
| File extensions corresponding to the Video document type
|
*/
'video_extensions' => ['mp4', 'avi', 'mov', 'mpg', 'mpeg', 'mkv', 'webm'],
/*
|--------------------------------------------------------------------------
| Audio Extensions
|--------------------------------------------------------------------------
|
| File extensions corresponding to the Audio document type
|
*/
'audio_extensions' => ['mp3', 'wav', 'wma', 'm4a', 'ogg'],
];