feat: read config from /etc/librepages/conductor/
This commit is contained in:
parent
db9115b90b
commit
5851b686b4
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ impl Settings {
|
||||||
let mut s = Config::builder();
|
let mut s = Config::builder();
|
||||||
|
|
||||||
const CURRENT_DIR: &str = "./config/config.toml";
|
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") {
|
if let Ok(path) = env::var("LPCONDUCTOR_CONFIG") {
|
||||||
s = s.add_source(File::with_name(&path));
|
s = s.add_source(File::with_name(&path));
|
||||||
|
|
Loading…
Reference in a new issue