feat: add configurable HLS CORS allowlists

This commit is contained in:
root
2026-09-04 22:28:33 +02:00
parent 6fae6a3a43
commit 9710e8d228
24 changed files with 879 additions and 7 deletions
+29
View File
@@ -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);
}
}