diff --git a/src/settings.rs b/src/settings.rs index 0e46db0..36dfcae 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -78,9 +78,9 @@ impl Settings { let mut s = Config::new(); const CURRENT_DIR: &str = "./config/default.toml"; - const ETC: &str = "/etc/rwook/config.toml"; + const ETC: &str = "/etc/lpforms/config.toml"; - if let Ok(path) = env::var("RWHOOK_CONFIG") { + if let Ok(path) = env::var("LPFORMS") { s.merge(File::with_name(&path))?; } else if Path::new(CURRENT_DIR).exists() { // merging default config from file @@ -91,7 +91,7 @@ impl Settings { log::warn!("configuration file not found"); } - s.merge(Environment::with_prefix("RWHOOK").separator("_"))?; + s.merge(Environment::with_prefix("LPFORMS").separator("_"))?; check_url(&s);