aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/stream.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-01-20 14:47:39 +0100
committermetamuffin <metamuffin@disroot.org>2024-01-20 14:47:39 +0100
commit9499c195230a7d5adaebd46892b373c86c5248c2 (patch)
treeff652e9959dc2f0349a4e5aed75e8837b452e45f /server/src/routes/stream.rs
parent730353601db9818d148c85bfe1ecb119abaab7cc (diff)
downloadjellything-9499c195230a7d5adaebd46892b373c86c5248c2.tar
jellything-9499c195230a7d5adaebd46892b373c86c5248c2.tar.bz2
jellything-9499c195230a7d5adaebd46892b373c86c5248c2.tar.zst
seperate secrets config file
Diffstat (limited to 'server/src/routes/stream.rs')
-rw-r--r--server/src/routes/stream.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/src/routes/stream.rs b/server/src/routes/stream.rs
index c033bda..5c21a5a 100644
--- a/server/src/routes/stream.rs
+++ b/server/src/routes/stream.rs
@@ -10,9 +10,10 @@ use jellybase::{
database::{TableExt, T_NODE},
federation::Federation,
permission::{NodePermissionExt, PermissionSetExt},
- CONF,
+ SECRETS,
};
use jellycommon::{
+ config::FederationAccount,
stream::StreamSpec,
user::{CreateSessionParams, UserPermission},
TrackSource,
@@ -77,8 +78,10 @@ pub async fn r_stream(
.last()
.ok_or(anyhow!("federation inconsistent"))?;
- let (username, password, _) = CONF
- .remote_credentials
+ let FederationAccount {
+ password, username, ..
+ } = SECRETS
+ .federation
.get(host)
.ok_or(anyhow!("no credentials on the server-side"))?;