feat: read config from /etc/librepages/config

This commit is contained in:
Aravinth Manivannan 2022-12-30 03:45:14 +05:30
parent bb0b6ef597
commit a35bf96aea
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ impl Settings {
let mut s = Config::builder();
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") {
s = s.add_source(File::with_name(&path));