File tree 3 files changed +14
-8
lines changed 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ARG BASE_TAG=latest
3
3
FROM ${JITSI_REPO}/base-java:${BASE_TAG}
4
4
5
5
RUN apt-dpkg-wrap apt-get update && \
6
- apt-dpkg-wrap apt-get install -y jitsi-videobridge2 jq curl iproute2 && \
6
+ apt-dpkg-wrap apt-get install -y jitsi-videobridge2 jq curl iproute2 dnsutils && \
7
7
apt-cleanup
8
8
9
9
COPY rootfs/ /
Original file line number Diff line number Diff line change
1
+ {{ $COLIBRI_REST_ENABLED := .Env.COLIBRI_REST_ENABLED | default "false" | toBool }}
1
2
{{ $ENABLE_COLIBRI_WEBSOCKET := .Env.ENABLE_COLIBRI_WEBSOCKET | default "1" | toBool }}
2
3
{{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool }}
3
4
{{ $JVB_TCP_PORT := .Env.JVB_TCP_PORT | default "4443" }}
4
5
{{ $JVB_TCP_MAPPED_PORT := .Env.JVB_TCP_MAPPED_PORT | default $JVB_TCP_PORT }}
5
6
{{ $PUBLIC_URL_DOMAIN := .Env.PUBLIC_URL | default "https://localhost:8443" | trimPrefix "https://" | trimSuffix "/" -}}
6
- {{ $WS_DOMAIN := .Env.JVB_WS_DOMAIN | default $PUBLIC_URL_DOMAIN -}}
7
- {{ $WS_SERVER_ID := .Env.JVB_WS_SERVER_ID | default .Env.LOCAL_ADDRESS -}}
8
- {{ $COLIBRI_REST_ENABLED := .Env.COLIBRI_REST_ENABLED | default "false" | toBool }}
9
7
{{ $SHUTDOWN_REST_ENABLED := .Env.SHUTDOWN_REST_ENABLED | default "false" | toBool }}
8
+ {{ $WS_DOMAIN := .Env.JVB_WS_DOMAIN | default $PUBLIC_URL_DOMAIN -}}
9
+ {{ $WS_SERVER_ID := .Env.JVB_WS_SERVER_ID | default .Env.JVB_WS_SERVER_ID_FALLBACK -}}
10
10
11
11
videobridge {
12
12
ice {
@@ -84,7 +84,6 @@ ice4j {
84
84
enabled = false
85
85
{{ end -}}
86
86
}
87
-
88
87
static-mappings = [
89
88
{{ if .Env.DOCKER_HOST_ADDRESS -}}
90
89
{
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
- export LOCAL_ADDRESS=$(ip addr show dev "$(ip route|awk '/^default/ { print $5 }')" | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
4
- export SENTRY_RELEASE="${SENTRY_RELEASE:-$(apt-cache policy jitsi-videobridge2 | sed -n '/Installed/p' | sed -e 's/[^:]*: //')}"
5
-
6
3
if [[ -z $JVB_AUTH_PASSWORD ]]; then
7
4
echo 'FATAL ERROR: JVB auth password must be set'
8
5
exit 1
@@ -14,6 +11,16 @@ if [[ "$JVB_AUTH_PASSWORD" == "$OLD_JVB_AUTH_PASSWORD" ]]; then
14
11
exit 1
15
12
fi
16
13
14
+ # On environments like Swarm the IP address used by the default gateway need not be
15
+ # the one used for inter-container traffic. Use that one for our fallback ID.
16
+ XMPP_SERVER_IP=$(dig +short ${XMPP_SERVER})
17
+ export JVB_WS_SERVER_ID_FALLBACK=$(ip route get ${XMPP_SERVER_IP} | grep -oP '(?<=src ).*' | awk '{ print $1 '})
18
+
19
+ # Local IP for the ice4j mapping harvester.
20
+ export LOCAL_ADDRESS=$(ip route get 1 | grep -oP '(?<=src ).*' | awk '{ print $1 '})
21
+
22
+ export SENTRY_RELEASE="${SENTRY_RELEASE:-$(apt-cache policy jitsi-videobridge2 | sed -n '/Installed/p' | sed -e 's/[^:]*: //')}"
23
+
17
24
if [[ -f /config/custom-sip-communicator.properties ]]; then
18
25
cat /config/custom-sip-communicator.properties > /config/sip-communicator.properties
19
26
fi
You can’t perform that action at this time.
0 commit comments