update environment configuration for local development, enhance database initialization, and improve Nginx routing for admin access

This commit is contained in:
zwitschi committed 2026-08-03 14:26:11 +02:00
1 parent 2e061dff28
commit 1ae0ad121b
10 files changed
+185 -37

No files matched your search

+8 -1
View File
@@ -64,6 +64,12 @@ func LoadPlaylist(playlistPath string) ([]VideoFile, error) {
if line == "" || strings.HasPrefix(line, "#") {
continue
}
if strings.HasPrefix(line, "file ") {
line = strings.TrimSpace(strings.TrimPrefix(line, "file "))
line = strings.Trim(line, "'\"")
}
videos = append(videos, VideoFile{Path: line})
}
@@ -177,8 +183,9 @@ func main() {
"-f", "hls",
"-hls_time", "6",
"-hls_list_size", "24",
"-strftime", "1",
"-hls_flags", "delete_segments+append_list+independent_segments",
"-hls_segment_filename", "/app/hls/segment_%Y%m%d_%H%M%S_%%03d.ts", // unique immutable names per ADR-001
"-hls_segment_filename", "/app/hls/segment_%Y%m%d_%H%M%S.ts",
"/app/hls/playlist.m3u8")
if err := cmd.Run(); err != nil {