submit token should be enough. no full user authentication needed

This commit is contained in:
mtrx 2024-12-28 02:12:46 +01:00
parent 7ba1605456
commit 917e7d824d
3 changed files with 5 additions and 0 deletions

View file

@ -4,6 +4,7 @@ use once_cell::sync::Lazy;
pub const ENV_PREFIX: &str = "CL_";
pub struct Config {
pub submit_token: String,
pub session_secret: String,
pub root_path: String,
pub username: String,
@ -65,6 +66,7 @@ fn load_config() -> Config {
}
Config {
submit_token: eval_conf_var("SUBMIT_TOKEN", true, None).unwrap(),
session_secret: eval_conf_var("SESSION_SECRET", true, None).unwrap(),
root_path: eval_conf_var("ROOT_PATH", false, Some("./content")).unwrap(),
username: eval_conf_var("USERNAME", true, None).unwrap(),