From a820a5233dc88a3c19b3c3b743e04c13fd3b17f4 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sun, 31 Oct 2021 22:47:09 +0530 Subject: [PATCH] change config dir and env var prefix --- src/settings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings.rs b/src/settings.rs index 389440f..1334d92 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -57,9 +57,9 @@ impl Settings { .expect("Couldn't get the number of CPUs"); const CURRENT_DIR: &str = "./config/default.toml"; - const ETC: &str = "/etc/static-pages/config.toml"; + const ETC: &str = "/etc/libmedium/config.toml"; - if let Ok(path) = env::var("ATHENA_CONFIG") { + if let Ok(path) = env::var("LIBMEDIUM") { s.merge(File::with_name(&path))?; } else if Path::new(CURRENT_DIR).exists() { // merging default config from file