feat: read config from /etc/librepages/config
This commit is contained in:
parent
bb0b6ef597
commit
a35bf96aea
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ impl Settings {
|
||||||
let mut s = Config::builder();
|
let mut s = Config::builder();
|
||||||
|
|
||||||
const CURRENT_DIR: &str = "./config/default.toml";
|
const CURRENT_DIR: &str = "./config/default.toml";
|
||||||
const ETC: &str = "/etc/lpforms/config.toml";
|
const ETC: &str = "/etc/librepages/forms/config.toml";
|
||||||
|
|
||||||
if let Ok(path) = env::var("LPFORMS_CONFIG") {
|
if let Ok(path) = env::var("LPFORMS_CONFIG") {
|
||||||
s = s.add_source(File::with_name(&path));
|
s = s.add_source(File::with_name(&path));
|
||||||
|
|
Loading…
Reference in a new issue