Skip to content

Commit fcce53b

Browse files
emrahcomdamencho
authored andcommitted
fix: get the internal-api-port from jibri.conf if exists
1 parent 5f53fd5 commit fcce53b

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sudo chmod 0755 /usr/local/bin/chromedriver
5959
### Miscellaneous required tools
6060
See the debian [control file](debian/control) for the dependencies that are required.
6161
These can be installed using the following:
62-
`sudo apt-get install default-jre-headless ffmpeg curl alsa-utils icewm xdotool xserver-xorg-video-dummy`
62+
`sudo apt-get install default-jre-headless ffmpeg curl alsa-utils icewm xdotool xserver-xorg-video-dummy ruby-hocon`
6363

6464
### Jitsi Debian Repository
6565
The Jibri packages can be found in the stable repository on downloads.jitsi.org.

debian/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Build-Depends: debhelper (>= 9)
77

88
Package: jibri
99
Architecture: all
10-
Depends: default-jre-headless | java8-runtime-headless | java8-runtime, ffmpeg, curl, alsa-utils, icewm, xdotool, xserver-xorg-video-dummy, procps
10+
Depends: default-jre-headless | java8-runtime-headless | java8-runtime, ffmpeg, curl, alsa-utils, icewm, xdotool, xserver-xorg-video-dummy, procps, ruby-hocon
1111
Description: Jibri
1212
Jibri can be used to capture data from a Jitsi Meet conference and record it to a file or stream it to a url
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/bin/bash
22

3-
curl -X POST http://127.0.0.1:3333/jibri/api/internal/v1.0/gracefulShutdown
3+
CONF="/etc/jitsi/jibri/jibri.conf"
4+
5+
PORT=$(hocon -f $CONF get jibri.api.http.internal-api-port 2>/dev/null || true)
6+
[[ -z "$PORT" ]] && PORT=3333
7+
8+
curl -X POST http://127.0.0.1:$PORT/jibri/api/internal/v1.0/gracefulShutdown
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/bin/bash
22

3-
curl -X POST http://127.0.0.1:3333/jibri/api/internal/v1.0/notifyConfigChanged
3+
CONF="/etc/jitsi/jibri/jibri.conf"
4+
5+
PORT=$(hocon -f $CONF get jibri.api.http.internal-api-port 2>/dev/null || true)
6+
[[ -z "$PORT" ]] && PORT=3333
7+
8+
curl -X POST http://127.0.0.1:$PORT/jibri/api/internal/v1.0/notifyConfigChanged
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/bin/bash
22

3-
curl -X POST http://127.0.0.1:3333/jibri/api/internal/v1.0/shutdown
3+
CONF="/etc/jitsi/jibri/jibri.conf"
4+
5+
PORT=$(hocon -f $CONF get jibri.api.http.internal-api-port 2>/dev/null || true)
6+
[[ -z "$PORT" ]] && PORT=3333
7+
8+
curl -X POST http://127.0.0.1:$PORT/jibri/api/internal/v1.0/shutdown

0 commit comments

Comments
 (0)