diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-11-02 18:51:32 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-11-02 18:54:19 +0000 |
commit | bbbf3ad38f649008e58e2eb11f0bee96722243c7 (patch) | |
tree | 6b0d61277b702ce31da6c65073a66faab3d650d7 /config | |
parent | ef667f16ef26588320e8157078b5bc1ac32adae2 (diff) | |
download | mediasync-bbbf3ad38f649008e58e2eb11f0bee96722243c7.tar mediasync-bbbf3ad38f649008e58e2eb11f0bee96722243c7.tar.gz mediasync-bbbf3ad38f649008e58e2eb11f0bee96722243c7.zip |
Remove Discord Activity code from this branch
Diffstat (limited to 'config')
-rw-r--r-- | config/runtime.exs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/config/runtime.exs b/config/runtime.exs index 35a80c1..47a8a21 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -2,11 +2,6 @@ import Config default_port = 8000 -enable_discord_activity? = - Mediasync.Utils.int_repr_to_bool( - String.to_integer(System.get_env("MEDIASYNC_ENABLE_DISCORD_ACTIVITY", "0")) - ) - websocket_origin = MapSet.new( String.split( @@ -17,28 +12,12 @@ websocket_origin = ) ) -{discord_client_id, discord_client_secret} = - if enable_discord_activity? do - {System.fetch_env!("MEDIASYNC_DISCORD_CLIENT_ID"), - System.fetch_env!("MEDIASYNC_DISCORD_CLIENT_SECRET")} - end - -websocket_origin = - if enable_discord_activity? do - MapSet.put(websocket_origin, "https://#{discord_client_id}.discordsays.com") - else - websocket_origin - end - config :mediasync, port: String.to_integer(System.get_env("MEDIASYNC_PORT", "#{default_port}")), websocket_origin: websocket_origin, max_rooms: :infinity, max_video_url_size: 2048, 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") |