From 407862a4e0e10ce2a035e4e5e76e26dde849aac1 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Sat, 27 Jul 2024 21:04:28 +0530 Subject: Finish Discord activity implementation --- config/runtime.exs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/runtime.exs b/config/runtime.exs index 65f7b0a..35a80c1 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -17,9 +17,10 @@ websocket_origin = ) ) -discord_client_id = +{discord_client_id, discord_client_secret} = if enable_discord_activity? do - System.fetch_env!("MEDIASYNC_DISCORD_CLIENT_ID") + {System.fetch_env!("MEDIASYNC_DISCORD_CLIENT_ID"), + System.fetch_env!("MEDIASYNC_DISCORD_CLIENT_SECRET")} end websocket_origin = @@ -37,6 +38,7 @@ config :mediasync, websocket_max_frame_octets: 10_000, enable_discord_activity?: enable_discord_activity?, discord_client_id: discord_client_id, + discord_client_secret: discord_client_secret, secret_key_base: System.fetch_env!("MEDIASYNC_SECRET_KEY_BASE"), session_encryption_salt: System.fetch_env!("MEDIASYNC_SESSION_ENCRYPTION_SALT"), session_signing_salt: System.fetch_env!("MEDIASYNC_SESSION_SIGNING_SALT") -- cgit v1.2.3-57-g22cb