From efb0e147fdade4cdd51f6e57baafd94465a24deb Mon Sep 17 00:00:00 2001 From: realaravinth Date: Thu, 8 Sep 2022 18:14:27 +0530 Subject: [PATCH] fix: repo url and config env param --- config/default.toml | 2 +- src/settings.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/default.toml b/config/default.toml index 65de739..6fd253d 100644 --- a/config/default.toml +++ b/config/default.toml @@ -1,5 +1,5 @@ debug = true -source_code = "https://github.com/realaravinth/forms" +source_code = "https://git.batsense.net/librepages/forms" [server] # Please set a unique value, your mCaptcha instance's security depends on this being diff --git a/src/settings.rs b/src/settings.rs index 36dfcae..9eecd71 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -80,7 +80,7 @@ impl Settings { const CURRENT_DIR: &str = "./config/default.toml"; const ETC: &str = "/etc/lpforms/config.toml"; - if let Ok(path) = env::var("LPFORMS") { + if let Ok(path) = env::var("LPFORMS_CONFIG") { s.merge(File::with_name(&path))?; } else if Path::new(CURRENT_DIR).exists() { // merging default config from file