This commit is contained in:
ponzischeme89
2026-08-22 12:38:26 +12:00
parent f982d391b9
commit b3e3f62c54
26 changed files with 1279 additions and 108 deletions
+8
View File
@@ -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
}