From a0f4b96aee4ebe194b1bbcb331030b8b76b42503 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Sat, 31 May 2025 20:51:21 -0400 Subject: [PATCH] Added SECRET_KEY key --- src/keys.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/keys.rs b/src/keys.rs index b77f885..b320fc0 100644 --- a/src/keys.rs +++ b/src/keys.rs @@ -6,11 +6,16 @@ pub const DBURL: &str = "DATABASE_URL"; // Used for the icarus app pub const SECRET_MAIN_KEY: &str = "SECRET_MAIN_KEY"; +// Environment key for secret key +// Generic use of secret key that could be found in various apps +pub const SECRET_KEY: &str = "SECRET_KEY"; + // Environment key for root directory for the icarus app pub const ROOT_DIRECTORY: &str = "ROOT_DIRECTORY"; pub mod error { pub const ERROR: &str = "DATABASE_URL must be set in .env"; + pub const SECRET_KEY: &str = "SECRET_KEY must be set in environment file"; pub const SECRET_MAIN_KEY: &str = "SECRET_MAIN_KEY must not be set in environment file"; pub const ROOT_DIRECTORY: &str = "ROOT_DIRECTORY must not be set in environment file"; }