37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| HTTP client defaults
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
'http' => [
|
|
'timeout' => env('VIDEO_EXTRACTOR_TIMEOUT', 30),
|
|
'user_agent' => env('VIDEO_EXTRACTOR_USER_AGENT'),
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Caching
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Thumbnail URLs are stable CDN resources and may be cached for a long
|
|
| time. Full extraction results (which include format URLs) are cached
|
|
| briefly, since stream links carry an `expires=`/`expire=` parameter.
|
|
|
|
|
*/
|
|
|
|
'cache' => [
|
|
'enabled' => env('VIDEO_EXTRACTOR_CACHE_ENABLED', true),
|
|
'store' => env('VIDEO_EXTRACTOR_CACHE_STORE'), // null = default store
|
|
'thumbnail_ttl' => env('VIDEO_EXTRACTOR_THUMBNAIL_TTL', 7 * 24 * 60 * 60), // 7 days
|
|
'info_ttl' => env('VIDEO_EXTRACTOR_INFO_TTL', 10 * 60), // 10 minutes
|
|
],
|
|
|
|
];
|