summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-07-17 13:41:06 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-07-17 13:41:06 +0000
commit06f7696c0976c75c13435f84a2101c1203c18b95 (patch)
tree9ea52c784f4bc5013c8e8af32e82c0a497889b32 /config
downloadmediasync-06f7696c0976c75c13435f84a2101c1203c18b95.tar
mediasync-06f7696c0976c75c13435f84a2101c1203c18b95.tar.gz
mediasync-06f7696c0976c75c13435f84a2101c1203c18b95.zip
Initial commit
Diffstat (limited to 'config')
-rw-r--r--config/runtime.exs13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/runtime.exs b/config/runtime.exs
new file mode 100644
index 0000000..5c600db
--- /dev/null
+++ b/config/runtime.exs
@@ -0,0 +1,13 @@
+import Config
+
+{:ok, sqids} = Sqids.new()
+
+config :mediasync,
+ port: String.to_integer(System.get_env("MEDIASYNC_PORT", "8000")),
+ node_id: Sqids.encode!(sqids, [String.to_integer(System.get_env("MEDIASYNC_NODE_ID", "1"))]),
+ max_rooms: :infinity,
+ max_video_url_size: 2048,
+ websocket_max_frame_octets: 10_000,
+ 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")