From df1db951c512a58110171d046ef367789df02733 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Nov 2021 11:36:03 +0100 Subject: Support RTMPS --- server/initializers/checker-after-init.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'server/initializers/checker-after-init.ts') diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts index 7a9e07482..57ef0d218 100644 --- a/server/initializers/checker-after-init.ts +++ b/server/initializers/checker-after-init.ts @@ -151,6 +151,20 @@ function checkConfig () { if (CONFIG.LIVE.ALLOW_REPLAY === true && CONFIG.TRANSCODING.ENABLED === false) { return 'Live allow replay cannot be enabled if transcoding is not enabled.' } + + if (CONFIG.LIVE.RTMP.ENABLED === false && CONFIG.LIVE.RTMPS.ENABLED === false) { + return 'You must enable at least RTMP or RTMPS' + } + + if (CONFIG.LIVE.RTMPS.ENABLED) { + if (!CONFIG.LIVE.RTMPS.KEY_FILE) { + return 'You must specify a key file to enabled RTMPS' + } + + if (!CONFIG.LIVE.RTMPS.CERT_FILE) { + return 'You must specify a cert file to enable RTMPS' + } + } } // Object storage -- cgit v1.2.3