diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-20 14:47:39 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-20 14:47:39 +0100 |
commit | 9499c195230a7d5adaebd46892b373c86c5248c2 (patch) | |
tree | ff652e9959dc2f0349a4e5aed75e8837b452e45f /server/src/routes/mod.rs | |
parent | 730353601db9818d148c85bfe1ecb119abaab7cc (diff) | |
download | jellything-9499c195230a7d5adaebd46892b373c86c5248c2.tar jellything-9499c195230a7d5adaebd46892b373c86c5248c2.tar.bz2 jellything-9499c195230a7d5adaebd46892b373c86c5248c2.tar.zst |
seperate secrets config file
Diffstat (limited to 'server/src/routes/mod.rs')
-rw-r--r-- | server/src/routes/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/routes/mod.rs b/server/src/routes/mod.rs index 6bc5127..d6c1e9f 100644 --- a/server/src/routes/mod.rs +++ b/server/src/routes/mod.rs @@ -6,7 +6,7 @@ use crate::{database::DataAcid, routes::ui::error::MyResult}; use api::{r_api_account_login, r_api_node_raw, r_api_root, r_api_version}; use base64::Engine; -use jellybase::{federation::Federation, CONF}; +use jellybase::{federation::Federation, CONF, SECRETS}; use log::warn; use rand::random; use rocket::{ @@ -59,7 +59,8 @@ pub fn build_rocket(database: DataAcid, federation: Federation) -> Rocket<Build> .map(|e| e.parse().unwrap()) .unwrap_or(8000), secret_key: SecretKey::derive_from( - CONF.cookie_key + SECRETS + .cookie_key .clone() .unwrap_or_else(|| { warn!("cookie_key not configured, generating a random one."); |