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/main.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/main.rs')
-rw-r--r-- | server/src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index 6862a98..fbfbba6 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -10,9 +10,7 @@ use crate::routes::ui::{account::hash_password, admin::log::enable_logging}; use database::DataAcid; use jellybase::{ - database::{ReadableTable, Ser, T_USER}, - federation::Federation, - CONF, + database::{ReadableTable, Ser, T_USER}, federation::Federation, CONF, SECRETS }; use jellycommon::user::{PermissionSet, Theme, User}; use log::{error, info, warn}; @@ -33,7 +31,7 @@ async fn main() { let federation = Federation::initialize(); if let Some(username) = &CONF.admin_username - && let Some(password) = &CONF.admin_password + && let Some(password) = &SECRETS.admin_password { let txn = database.begin_write().unwrap(); let mut users = txn.open_table(T_USER).unwrap(); |