diff --git a/src/config.rs b/src/config.rs index fdddf2e..f2330ae 100644 --- a/src/config.rs +++ b/src/config.rs @@ -6,7 +6,7 @@ pub static SESSION_ACTIVE_TIME: Lazy = Lazy::new(|| { env::var("SESSION_ACTIVE_TIME") .ok() .and_then(|value| value.parse().ok()) - .unwrap_or(600) + .unwrap_or(3600) }); pub static COOKIE_DOMAIN: Lazy = Lazy::new(|| env::var("DOMAIN").ok().unwrap_or(".aaronhu.cn".to_owned()));