aboutsummaryrefslogtreecommitdiff
path: root/src/garage/server.rs
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2023-10-19 03:39:02 +0200
committernetworkException <git@nwex.de>2023-10-19 03:39:02 +0200
commit8599051c492d7df22305e4c65659395d9102955c (patch)
treed5ddd8db2363557c971c775c8ecbaa4c7e24075e /src/garage/server.rs
parent4a19ee94bb9c846af1c74db8ba501b4ff625a3f6 (diff)
downloadgarage-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.rs2
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 ----