feat: read config from /etc/librepages/conductor/

This commit is contained in:
Aravinth Manivannan 2022-12-30 04:44:30 +05:30
parent db9115b90b
commit 5851b686b4
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -76,7 +76,7 @@ impl Settings {
let mut s = Config::builder();
const CURRENT_DIR: &str = "./config/config.toml";
const ETC: &str = "/etc/lpconductor/config.toml";
const ETC: &str = "/etc/librepages/conductor/config.toml";
if let Ok(path) = env::var("LPCONDUCTOR_CONFIG") {
s = s.add_source(File::with_name(&path));