Skip to content

Commit a207263

Browse files
committed
Merge prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua
2 parents 2bc67a5 + bec928c commit a207263

File tree

12 files changed

+57
-20
lines changed

12 files changed

+57
-20
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## stable-4857
2+
3+
Based on stable release 4857.
4+
5+
* a81ad73 prosody: add support for lobby
6+
* baed605 web: fix removing closed captions button if transcription is enabled
7+
* edecacd etherpad: add ability to use a external server
8+
* a7563d4 jvb: use JVB_TCP_PORT for exposing the port
9+
* b235ea1 prosody: disable s2s module
10+
* 1d428a8 prosody: use a 2-stage build
11+
* 613c26c misc: working on latest
12+
* 4d72ee3 release: stable-4627-1
13+
* 22b7063 examples: update Traefik v1 example
14+
* 1381b08 prosody: fix installing dependdencies
15+
* 2900c11 misc: add extra line to tag message
16+
* c57a84b misc: working on latest
17+
118
## stable-4627-1
219

320
Based on stable release 4627-1.

base/Dockerfile

+5-8
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@ ARG JITSI_RELEASE=stable
44

55
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
66

7-
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz /tmp/s6-overlay.tar.gz
8-
ADD https://download.jitsi.org/jitsi-key.gpg.key /tmp/jitsi.key
9-
ADD https://github.com/subchen/frep/releases/download/v1.3.5/frep-1.3.5-linux-amd64 /usr/bin/frep
10-
117
COPY rootfs /
128

139
RUN \
14-
tar xfz /tmp/s6-overlay.tar.gz -C / && \
15-
rm -f /tmp/*.tar.gz && \
1610
apt-dpkg-wrap apt-get update && \
1711
apt-dpkg-wrap apt-get install -y apt-transport-https apt-utils ca-certificates gnupg && \
18-
apt-key add /tmp/jitsi.key && \
19-
rm -f /tmp/jitsi.key && \
12+
apt-dpkg-wrap apt-get install -y wget && \
13+
wget -qO - https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz | tar xfz - -C / && \
14+
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - && \
15+
wget -q https://github.com/subchen/frep/releases/download/v1.3.5/frep-1.3.5-linux-amd64 -O /usr/bin/frep && \
16+
apt-dpkg-wrap apt-get --purge remove -y wget && \
2017
echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list && \
2118
echo "deb http://ftp.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/backports.list && \
2219
apt-dpkg-wrap apt-get update && \

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ services:
6060
- AUTH_TYPE
6161
- ENABLE_AUTH
6262
- ENABLE_GUESTS
63+
- ENABLE_LOBBY
6364
- GLOBAL_MODULES
6465
- GLOBAL_CONFIG
6566
- LDAP_URL
@@ -127,6 +128,7 @@ services:
127128
- XMPP_DOMAIN
128129
- XMPP_AUTH_DOMAIN
129130
- XMPP_INTERNAL_MUC_DOMAIN
131+
- XMPP_MUC_DOMAIN
130132
- XMPP_SERVER
131133
- JICOFO_COMPONENT_SECRET
132134
- JICOFO_AUTH_USER

env.example

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ TZ=UTC
4949
# See the "Running behind NAT or on a LAN environment" section in the README
5050
#DOCKER_HOST_ADDRESS=192.168.1.1
5151

52+
# Control whether the lobby feature should be enabled or not
53+
#ENABLE_LOBBY=1
5254

5355
#
5456
# Let's Encrypt configuration
@@ -94,7 +96,7 @@ TZ=UTC
9496
#JIGASI_SIP_TRANSPORT=UDP
9597

9698
#
97-
# Authentication configuration (see README for details)
99+
# Authentication configuration (see handbook for details)
98100
#
99101

100102
# Enable authentication

etherpad/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM etherpad/etherpad:1.8.4
22

3-
ADD ./rootfs/defaults/settings.json /opt/etherpad-lite/settings.json
3+
COPY ./rootfs/defaults/settings.json /opt/etherpad-lite/settings.json
44

55
EXPOSE 9001

jibri/Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ FROM ${JITSI_REPO}/base-java
66
ARG CHROME_RELEASE=78.0.3904.97
77
ARG CHROMEDRIVER_MAJOR_RELEASE=78
88

9+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
10+
911
RUN \
1012
apt-dpkg-wrap apt-get update \
1113
&& apt-dpkg-wrap apt-get install -y jibri libgl1-mesa-dri \
@@ -22,17 +24,17 @@ RUN \
2224

2325
RUN \
2426
[ "${CHROME_RELEASE}" != "latest" ] \
25-
&& curl -4so /tmp/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb \
27+
&& curl -4so "/tmp/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb" "http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb" \
2628
&& apt-dpkg-wrap apt-get update \
27-
&& apt-dpkg-wrap apt-get install -y /tmp/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb \
29+
&& apt-dpkg-wrap apt-get install -y "/tmp/google-chrome-stable_${CHROME_RELEASE}-1_amd64.deb" \
2830
&& apt-cleanup \
2931
|| true
3032

3133
RUN \
3234
[ "${CHROMEDRIVER_MAJOR_RELEASE}" = "latest" ] \
3335
&& CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE)" \
3436
|| CHROMEDRIVER_RELEASE="$(curl -4Ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE})" \
35-
&& curl -4Ls https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_RELEASE}/chromedriver_linux64.zip \
37+
&& curl -4Ls "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_RELEASE}/chromedriver_linux64.zip" \
3638
| zcat >> /usr/bin/chromedriver \
3739
&& chmod +x /usr/bin/chromedriver \
3840
&& chromedriver --version

jicofo/rootfs/defaults/sip-communicator.properties

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ org.jitsi.impl.reservation.rest.BASE_URL={{ .Env.JICOFO_RESERVATION_REST_BASE_UR
1818
org.jitsi.jicofo.health.ENABLE_HEALTH_CHECKS=true
1919
{{ end }}
2020

21+
{{ if .Env.XMPP_MUC_DOMAIN }}
22+
org.jitsi.jicofo.XMPP_MUC_COMPONENT_PREFIX={{ first (splitList "." .Env.XMPP_MUC_DOMAIN) }}
23+
{{ end }}
24+
2125
{{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }}
2226
{{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }}
2327

jvb/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ${JITSI_REPO}/base-java
33

44
RUN \
55
apt-dpkg-wrap apt-get update && \
6-
apt-dpkg-wrap apt-get install -y jitsi-videobridge2 jq curl && \
6+
apt-dpkg-wrap apt-get install -y jitsi-videobridge2 jq curl iproute2 && \
77
apt-cleanup
88

99
COPY rootfs/ /

jvb/rootfs/etc/services.d/jvb/run

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
JAVA_SYS_PROPS="-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/ -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=config -Djava.util.logging.config.file=/config/logging.properties"
44

55
if [[ ! -z "$DOCKER_HOST_ADDRESS" ]]; then
6-
LOCAL_ADDRESS=$(hostname -I | cut -d " " -f1)
6+
LOCAL_ADDRESS=$(ip route get "$DOCKER_HOST_ADDRESS" | head -n1 | cut -d " " -f7)
77
JAVA_SYS_PROPS="$JAVA_SYS_PROPS -Dorg.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=$LOCAL_ADDRESS -Dorg.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=$DOCKER_HOST_ADDRESS"
88
fi
99

prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua

+14-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugin_paths = { "/prosody-plugins/", "/prosody-plugins-custom" }
77
http_default_host = "{{ .Env.XMPP_DOMAIN }}"
88

99
{{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }}
10+
{{ $ENABLE_GUEST_DOMAIN := and $ENABLE_AUTH (.Env.ENABLE_GUESTS | default "0" | toBool)}}
1011
{{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }}
1112
{{ $JWT_ASAP_KEYSERVER := .Env.JWT_ASAP_KEYSERVER | default "" }}
1213
{{ $JWT_ALLOW_EMPTY := .Env.JWT_ALLOW_EMPTY | default "0" | toBool }}
@@ -53,7 +54,7 @@ VirtualHost "{{ .Env.XMPP_DOMAIN }}"
5354
"ping";
5455
"speakerstats";
5556
"conference_duration";
56-
{{ if $ENABLE_LOBBY }}
57+
{{ if and $ENABLE_LOBBY (not $ENABLE_GUEST_DOMAIN) }}
5758
"muc_lobby_rooms";
5859
{{ end }}
5960
{{ if .Env.XMPP_MODULES }}
@@ -64,7 +65,7 @@ VirtualHost "{{ .Env.XMPP_DOMAIN }}"
6465
{{end}}
6566
}
6667

67-
{{ if $ENABLE_LOBBY }}
68+
{{ if and $ENABLE_LOBBY (not $ENABLE_GUEST_DOMAIN) }}
6869
main_muc = "{{ .Env.XMPP_MUC_DOMAIN }}"
6970
lobby_muc = "lobby.{{ .Env.XMPP_DOMAIN }}"
7071
{{ end }}
@@ -74,10 +75,20 @@ VirtualHost "{{ .Env.XMPP_DOMAIN }}"
7475

7576
c2s_require_encryption = false
7677

77-
{{ if and $ENABLE_AUTH (.Env.ENABLE_GUESTS | default "0" | toBool) }}
78+
{{ if $ENABLE_GUEST_DOMAIN }}
7879
VirtualHost "{{ .Env.XMPP_GUEST_DOMAIN }}"
7980
authentication = "anonymous"
8081
c2s_require_encryption = false
82+
83+
{{ if $ENABLE_LOBBY }}
84+
modules_enabled = {
85+
"muc_lobby_rooms";
86+
}
87+
88+
main_muc = "{{ .Env.XMPP_MUC_DOMAIN }}"
89+
lobby_muc = "lobby.{{ .Env.XMPP_DOMAIN }}"
90+
{{ end }}
91+
8192
{{ end }}
8293

8394
VirtualHost "{{ .Env.XMPP_AUTH_DOMAIN }}"

web/rootfs/defaults/meet.conf

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ ssi_types application/x-javascript application/javascript;
1111
index index.html index.htm;
1212
error_page 404 /static/404.html;
1313

14+
# Security headers
15+
add_header X-Content-Type-Options nosniff;
16+
add_header X-XSS-Protection "1; mode=block";
17+
1418
location = /config.js {
1519
alias /config/config.js;
1620
}

web/rootfs/defaults/ssl.conf

-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@ ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-
2020

2121
# headers
2222
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
23-
add_header X-Content-Type-Options nosniff;
24-
add_header X-XSS-Protection "1; mode=block";

0 commit comments

Comments
 (0)