add config tempdir and default values

This commit is contained in:
speatzle 2024-05-09 20:05:56 +02:00
parent 69b2d96c92
commit da66c2fdf9
2 changed files with 9 additions and 0 deletions

View file

@ -40,6 +40,14 @@ func main() {
return
}
if conf.Worker.FFmpegPath == "" {
conf.Worker.FFmpegPath = "ffmpeg"
}
if conf.Worker.TempDir == "" {
conf.Worker.TempDir = "/tmp"
}
if *isserver {
slog.Info("Starting Server...")
server.Start(conf, templates, static, migrations)