Sync shared snapshot from 9589d07
This commit is contained in:
1 parent
49e3c7d561
commit
d3fff0a495
7 files changed
+1055
-560
No files matched your search
@@ -39,6 +39,11 @@ type Config struct {
|
||||
PublicURL string
|
||||
SessionCookie string
|
||||
SecureCookies bool
|
||||
// AuthGuardURL is AuthGuard's base URL (see Web/Central/AuthGuard);
|
||||
// empty means auth-disabled mode (see internal/auth's package doc
|
||||
// comment). Read raw via os.Getenv rather than envOr since "" is a
|
||||
// meaningful, distinct value here (not a fallback-worthy blank).
|
||||
AuthGuardURL string
|
||||
InternalServiceSecret string
|
||||
FFmpeg string
|
||||
FFprobe string
|
||||
@@ -94,6 +99,7 @@ func Load() (*Config, error) {
|
||||
PublicURL: strings.TrimRight(strings.TrimSpace(os.Getenv("PUBLIC_URL")), "/"),
|
||||
SessionCookie: envOr("SESSION_COOKIE", "mediacollection_session"),
|
||||
SecureCookies: envBool("COOKIE_SECURE", os.Getenv("TLS_CERT_FILE") != ""),
|
||||
AuthGuardURL: strings.TrimSpace(os.Getenv("AUTHGUARD_URL")),
|
||||
InternalServiceSecret: strings.TrimSpace(os.Getenv("INTERNAL_SERVICE_SECRET")),
|
||||
FFmpeg: envOr("FFMPEG_PATH", "ffmpeg"),
|
||||
FFprobe: envOr("FFPROBE_PATH", "ffprobe"),
|
||||
|
||||
Reference in new issue
Block a user