feat: add configurable HLS CORS allowlists
This commit is contained in:
@@ -42,3 +42,32 @@ final class StationFilesystems
|
||||
return $this->filesystem;
|
||||
}
|
||||
}
|
||||
|
||||
namespace App\Event\Nginx;
|
||||
|
||||
use App\Entity\Station;
|
||||
|
||||
final class WriteNginxConfiguration
|
||||
{
|
||||
/** @var list<string> */
|
||||
private array $blocks = [];
|
||||
|
||||
public function __construct(private Station $station)
|
||||
{
|
||||
}
|
||||
|
||||
public function getStation(): Station
|
||||
{
|
||||
return $this->station;
|
||||
}
|
||||
|
||||
public function appendBlock(string $block): void
|
||||
{
|
||||
$this->blocks[] = $block;
|
||||
}
|
||||
|
||||
public function buildConfiguration(): string
|
||||
{
|
||||
return implode("\n", $this->blocks);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user