Files
animethemes-server/app/Actions/Http/Wiki/Video/VideoNginxStreamAction.php
T
2025-07-24 01:22:29 -03:00

35 lines
738 B
PHP

<?php
declare(strict_types=1);
namespace App\Actions\Http\Wiki\Video;
use App\Actions\Http\NginxStreamAction;
use App\Constants\Config\VideoConstants;
use App\Models\Wiki\Video;
use Illuminate\Support\Facades\Config;
class VideoNginxStreamAction extends NginxStreamAction
{
public function __construct(Video $video)
{
parent::__construct($video);
}
/**
* The name of the disk.
*/
public function disk(): string
{
return Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED);
}
/**
* Get the location of the nginx internal redirect.
*/
protected function nginxRedirect(): string
{
return Config::get(VideoConstants::NGINX_REDIRECT_QUALIFIED);
}
}