Expose whether cluster mode is enabled over /api/instance/config
parent
01744df3cd
commit
ab9a9b4585
|
@ -32,6 +32,7 @@ Configuration of the instance relating to media
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
rtmp: {
|
rtmp: {
|
||||||
|
cluster: false,
|
||||||
port: 1935,
|
port: 1935,
|
||||||
ping_timeout: 60
|
ping_timeout: 60
|
||||||
},
|
},
|
||||||
|
|
|
@ -168,6 +168,7 @@ async function initAPI() {
|
||||||
app.get('/api/instance/config', (req, res) => {
|
app.get('/api/instance/config', (req, res) => {
|
||||||
res.json({
|
res.json({
|
||||||
rtmp: {
|
rtmp: {
|
||||||
|
cluster: config['rtmp']['cluster'],
|
||||||
port: config['rtmp']['port'],
|
port: config['rtmp']['port'],
|
||||||
ping_timeout: config['rtmp']['ping_timeout']
|
ping_timeout: config['rtmp']['ping_timeout']
|
||||||
},
|
},
|
||||||
|
|
Reference in New Issue