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

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));