Use app.Env for consistent env var access in frigate module

This commit is contained in:
eduard256
2026-03-25 19:41:25 +00:00
parent e2fdf0d3d6
commit 0ecf1eb75f
+1 -2
View File
@@ -3,7 +3,6 @@ package frigate
import (
"io"
"net/http"
"os"
"sync"
"time"
@@ -30,7 +29,7 @@ const requestTimeout = 5 * time.Second
func Init() {
log = app.GetLogger("frigate")
if url := os.Getenv("STRIX_FRIGATE_URL"); url != "" {
if url := app.Env("STRIX_FRIGATE_URL", ""); url != "" {
frigateURL = url
log.Info().Str("url", frigateURL).Msg("[frigate] using STRIX_FRIGATE_URL")
}