mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
feat(config): read secrets from NAME_FILE variables (#1421)
Co-authored-by: Hampus <[email protected]>
This commit is contained in:
1 parent
cc5545c333
commit
0c4f016ba2
17 files changed
+534
-31
No files matched your search
@@ -27,7 +27,9 @@ pub enum Command {
|
||||
}
|
||||
|
||||
pub fn load_config(args: &Args) -> anyhow::Result<Config> {
|
||||
load_config_from_iter(args, std::env::vars())
|
||||
let vars =
|
||||
fluxer_svc::config::resolve_env_files(std::env::vars()).map_err(anyhow::Error::msg)?;
|
||||
load_config_from_iter(args, vars)
|
||||
}
|
||||
|
||||
fn load_config_from_iter<I, K, V>(args: &Args, vars: I) -> anyhow::Result<Config>
|
||||
|
||||
Reference in new issue
Block a user