From ab9a9b4585836ebba45db13a3e8ff6fd992e10ff Mon Sep 17 00:00:00 2001 From: knotteye Date: Sat, 17 Oct 2020 22:08:56 -0500 Subject: [PATCH] Expose whether cluster mode is enabled over /api/instance/config --- docs/REST.md | 1 + src/http.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/REST.md b/docs/REST.md index 9058efb..784b883 100644 --- a/docs/REST.md +++ b/docs/REST.md @@ -32,6 +32,7 @@ Configuration of the instance relating to media ``` { rtmp: { + cluster: false, port: 1935, ping_timeout: 60 }, diff --git a/src/http.ts b/src/http.ts index f83b61b..b15b04f 100644 --- a/src/http.ts +++ b/src/http.ts @@ -168,6 +168,7 @@ async function initAPI() { app.get('/api/instance/config', (req, res) => { res.json({ rtmp: { + cluster: config['rtmp']['cluster'], port: config['rtmp']['port'], ping_timeout: config['rtmp']['ping_timeout'] },