Add file-backed environment secrets

This commit is contained in:
2026-06-07 23:13:54 +00:00
parent 9677835d84
commit 7c8d9191c1
7 changed files with 261 additions and 3 deletions

View File

@@ -35,6 +35,10 @@ func Load(opts LoadOptions) (Config, error) {
cfg.WeatherAPI.Timezone = opts.Timezone
}
if err := loadSecrets(cfg.Secrets); err != nil {
return Config{}, err
}
if err := Validate(cfg); err != nil {
return Config{}, err
}