0.3.01
This commit is contained in:
@@ -288,6 +288,14 @@ func Load() (Config, error) {
|
||||
ForYouRefreshInterval: duration("MEMBY_FOR_YOU_REFRESH_INTERVAL", 24*time.Hour),
|
||||
ForYouRebuildHour: integer("MEMBY_FOR_YOU_REBUILD_HOUR", 4),
|
||||
}
|
||||
// Integration capabilities are server facts, not secrets. Publish only whether each
|
||||
// service is configured; API keys and URLs remain gateway-only. An operator can still
|
||||
// disable the corresponding feature flag in the document without exposing credentials.
|
||||
c.RemoteConfig.Integrations = RemoteIntegrations{
|
||||
Tracearr: c.TracearrURL != "" && c.TracearrAPIKey != "",
|
||||
Sonarr: c.SonarrURL != "" && c.SonarrAPIKey != "",
|
||||
Radarr: c.RadarrURL != "" && c.RadarrAPIKey != "",
|
||||
}
|
||||
if c.AnalyticsRetention < 30*24*time.Hour {
|
||||
c.AnalyticsRetention = 30 * 24 * time.Hour
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user