update environment configuration for local development, enhance database initialization, and improve Nginx routing for admin access
This commit is contained in:
1 parent
2e061dff28
commit
1ae0ad121b
10 files changed
+185
-37
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user