Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion common/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use std::collections::HashMap;
use std::str::FromStr;
use std::{fs::File, io::Read};

pub const DEFAULT_CONFIG_FILE: &str = "/etc/openwec.conf.toml";
pub const DEFAULT_CONFIG_FILE: &str = match option_env!("OPENWEC_DEFAULT_CONFIG_FILE") {
Some(path) => path,
None => "/etc/openwec.conf.toml",
};

#[derive(Debug, Deserialize, Clone)]
#[serde(tag = "type")]
Expand Down
Loading