fix: load LiveKit and WebPush configuration fields in Load()

This commit is contained in:
root
2026-06-29 15:45:06 +00:00
parent 88756a72fa
commit bd2a7ec2a6
+10
View File
@@ -87,6 +87,16 @@ func Load() *Config {
CookieName: getEnv("DUMPSTER_SESSION_COOKIE", "dumpster_session"), CookieName: getEnv("DUMPSTER_SESSION_COOKIE", "dumpster_session"),
Duration: time.Duration(getInt("DUMPSTER_SESSION_DAYS", 30)) * 24 * time.Hour, Duration: time.Duration(getInt("DUMPSTER_SESSION_DAYS", 30)) * 24 * time.Hour,
}, },
LiveKit: LiveKitConfig{
URL: getEnv("LIVEKIT_URL", ""),
APIKey: getEnv("LIVEKIT_API_KEY", ""),
Secret: getEnv("LIVEKIT_API_SECRET", ""),
},
WebPush: WebPushConfig{
PublicKey: getEnv("VAPID_PUBLIC_KEY", ""),
PrivateKey: getEnv("VAPID_PRIVATE_KEY", ""),
Subject: getEnv("VAPID_SUBJECT", ""),
},
Giphy: GiphyConfig{ Giphy: GiphyConfig{
APIKey: getEnv("GIPHY_API_KEY", ""), APIKey: getEnv("GIPHY_API_KEY", ""),
}, },