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/repair | |
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/repair')
-rw-r--r-- | src/garage/repair/offline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/garage/repair/offline.rs b/src/garage/repair/offline.rs index f4edcf03..beb48d65 100644 --- a/src/garage/repair/offline.rs +++ b/src/garage/repair/offline.rs @@ -20,7 +20,7 @@ pub async fn offline_repair( } info!("Loading configuration..."); - let config = fill_secrets(read_config(config_file)?, secrets); + let config = fill_secrets(read_config(config_file)?, secrets)?; info!("Initializing Garage main data store..."); let garage = Garage::new(config)?; |