aboutsummaryrefslogtreecommitdiff
path: root/config/runtime.exs
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-07-27 15:34:28 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-07-27 15:34:28 +0000
commit407862a4e0e10ce2a035e4e5e76e26dde849aac1 (patch)
treedb8fe1c95672d31621c6bd5fe545cab5497f18df /config/runtime.exs
parentcd794243a5bba358d995e26ba024268e7d5d3f85 (diff)
downloadmediasync-407862a4e0e10ce2a035e4e5e76e26dde849aac1.tar
mediasync-407862a4e0e10ce2a035e4e5e76e26dde849aac1.tar.gz
mediasync-407862a4e0e10ce2a035e4e5e76e26dde849aac1.zip
Finish Discord activity implementation
Diffstat (limited to 'config/runtime.exs')
-rw-r--r--config/runtime.exs6
1 files changed, 4 insertions, 2 deletions
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")