diff --git a/src/config.rs b/src/config.rs index 1421ff5..ecf4572 100644 --- a/src/config.rs +++ b/src/config.rs @@ -28,6 +28,8 @@ pub struct Config { pub template_directory: PathBuf, #[serde(default)] pub static_directory: PathBuf, + #[serde(default)] + pub salt: String, } impl Default for Config { @@ -37,9 +39,10 @@ impl Default for Config { url: "http://127.0.0.1:9214".into(), log_level: LogLevel::info, log_file: None, - data_directory: PathBuf::from("data"), - template_directory: PathBuf::from("templates"), - static_directory: PathBuf::from("static"), + data_directory: "data".into(), + template_directory: "templates".into(), + static_directory: "static".into(), + salt: "salt and pepper".into(), } } }