diff options
author | networkException <git@nwex.de> | 2023-10-19 03:39:02 +0200 |
---|---|---|
committer | networkException <git@nwex.de> | 2023-10-19 03:39:02 +0200 |
commit | 8599051c492d7df22305e4c65659395d9102955c (patch) | |
tree | d5ddd8db2363557c971c775c8ecbaa4c7e24075e /src/garage/server.rs | |
parent | 4a19ee94bb9c846af1c74db8ba501b4ff625a3f6 (diff) | |
download | garage-8599051c492d7df22305e4c65659395d9102955c.tar.gz garage-8599051c492d7df22305e4c65659395d9102955c.zip |
garage: support specifying token / secret as environment variables
this patch adds support for specifying the `rpc_secret_file`,
`metrics_token_file` and `admin_token_file` as environment variables.
Diffstat (limited to 'src/garage/server.rs')
-rw-r--r-- | src/garage/server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs index 3ad10b72..96ea900d 100644 --- a/src/garage/server.rs +++ b/src/garage/server.rs @@ -29,7 +29,7 @@ async fn wait_from(mut chan: watch::Receiver<bool>) { pub async fn run_server(config_file: PathBuf, secrets: Secrets) -> Result<(), Error> { info!("Loading configuration..."); - let config = fill_secrets(read_config(config_file)?, secrets); + let config = fill_secrets(read_config(config_file)?, secrets)?; // ---- Initialize Garage internals ---- |