feat: add REDIS_PREFIX env var for shared Redis instance namespace

This commit is contained in:
2026-06-25 21:21:17 +01:00
parent 40f3559533
commit 6b29c6f069
3 changed files with 20 additions and 6 deletions
+4
View File
@@ -34,6 +34,10 @@ pub static ref ID_LENGTH: u32 = std::env::var("ID_LENGTH")
.unwrap_or("32".to_string())
.parse()
.unwrap();
pub static ref REDIS_PREFIX: String = std::env::var("REDIS_PREFIX")
.unwrap_or("".to_string())
.parse()
.unwrap();
pub static ref ALLOW_FILES: bool = std::env::var("ALLOW_FILES")
.unwrap_or("true".to_string())
.parse()