Merge pull request #1152 from jitsi/deb-update
Updates debian packaging.
This commit is contained in:
commit
86bce1e5f6
|
@ -1,4 +1,4 @@
|
||||||
Source: jitsi-meet
|
Source: jitsi-meet-web
|
||||||
Section: net
|
Section: net
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Jitsi Team <dev@jitsi.org>
|
Maintainer: Jitsi Team <dev@jitsi.org>
|
||||||
|
@ -7,10 +7,10 @@ Build-Depends: debhelper (>= 8.0.0)
|
||||||
Standards-Version: 3.9.6
|
Standards-Version: 3.9.6
|
||||||
Homepage: https://jitsi.org/meet
|
Homepage: https://jitsi.org/meet
|
||||||
|
|
||||||
Package: jitsi-meet
|
Package: jitsi-meet-web
|
||||||
|
Replaces: jitsi-meet (<= 1.0.1525-1)
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, jitsi-videobridge, jitsi-meet-prosody,
|
Depends: ${misc:Depends}
|
||||||
openjdk-8-jre-headless | nginx
|
|
||||||
Description: WebRTC JavaScript video conferences
|
Description: WebRTC JavaScript video conferences
|
||||||
Jitsi Meet is a WebRTC JavaScript application that uses Jitsi
|
Jitsi Meet is a WebRTC JavaScript application that uses Jitsi
|
||||||
Videobridge to provide high quality, scalable video conferences.
|
Videobridge to provide high quality, scalable video conferences.
|
||||||
|
@ -19,9 +19,25 @@ Description: WebRTC JavaScript video conferences
|
||||||
forwarding and relaying, configured to work with jetty instance
|
forwarding and relaying, configured to work with jetty instance
|
||||||
running embedded into Jitsi Videobridge
|
running embedded into Jitsi Videobridge
|
||||||
|
|
||||||
|
Package: jitsi-meet-web-config
|
||||||
|
Architecture: all
|
||||||
|
Depends: openssl, openjdk-8-jre-headless | nginx | apache2,
|
||||||
|
jitsi-meet-web
|
||||||
|
Description: Configuration for web serving of Jitsi Meet
|
||||||
|
Jitsi Meet is a WebRTC JavaScript application that uses Jitsi
|
||||||
|
Videobridge to provide high quality, scalable video conferences.
|
||||||
|
.
|
||||||
|
It is a web interface to Jitsi Videobridge for audio and video
|
||||||
|
forwarding and relaying, configured to work with jetty instance
|
||||||
|
running embedded into Jitsi Videobridge or using a webserver Nginx or
|
||||||
|
Apache2.
|
||||||
|
.
|
||||||
|
This package contains configuration for Nginx to be used with
|
||||||
|
Jitsi Meet.
|
||||||
|
|
||||||
Package: jitsi-meet-prosody
|
Package: jitsi-meet-prosody
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, openssl, prosody | prosody-trunk, jitsi-videobridge, jicofo
|
Depends: openssl, prosody | prosody-trunk, jitsi-meet-web
|
||||||
Description: Prosody configuration for Jitsi Meet
|
Description: Prosody configuration for Jitsi Meet
|
||||||
Jitsi Meet is a WebRTC JavaScript application that uses Jitsi
|
Jitsi Meet is a WebRTC JavaScript application that uses Jitsi
|
||||||
Videobridge to provide high quality, scalable video conferences.
|
Videobridge to provide high quality, scalable video conferences.
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
# Source debconf library.
|
|
||||||
. /usr/share/debconf/confmodule
|
|
|
@ -21,13 +21,49 @@ set -e
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
|
|
||||||
. /etc/jitsi/videobridge/config
|
|
||||||
|
|
||||||
. /etc/jitsi/jicofo/config
|
|
||||||
|
|
||||||
# loading debconf
|
# loading debconf
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
# try to get host from jitsi-videobridge
|
||||||
|
db_get jitsi-videobridge/jvb-hostname
|
||||||
|
if [ -z "$RET" ] ; then
|
||||||
|
# server hostname
|
||||||
|
db_set jitsi-videobridge/jvb-hostname "localhost"
|
||||||
|
db_input critical jitsi-videobridge/jvb-hostname || true
|
||||||
|
db_go
|
||||||
|
fi
|
||||||
|
JVB_HOSTNAME="$RET"
|
||||||
|
|
||||||
|
db_get jitsi-videobridge/jvbsecret
|
||||||
|
if [ -z "$RET" ] ; then
|
||||||
|
db_input critical jitsi-videobridge/jvbsecret || true
|
||||||
|
db_go
|
||||||
|
fi
|
||||||
|
JVB_SECRET="$RET"
|
||||||
|
|
||||||
|
db_get jicofo/jicofo-authuser
|
||||||
|
if [ -z "$RET" ] ; then
|
||||||
|
db_input critical jicofo/jicofo-authuser || true
|
||||||
|
db_go
|
||||||
|
fi
|
||||||
|
JICOFO_AUTH_USER="$RET"
|
||||||
|
|
||||||
|
db_get jicofo/jicofo-authpassword
|
||||||
|
if [ -z "$RET" ] ; then
|
||||||
|
db_input critical jicofo/jicofo-authpassword || true
|
||||||
|
db_go
|
||||||
|
fi
|
||||||
|
JICOFO_AUTH_PASSWORD="$RET"
|
||||||
|
|
||||||
|
db_get jicofo/jicofosecret
|
||||||
|
if [ -z "$RET" ] ; then
|
||||||
|
db_input critical jicofo/jicofosecret || true
|
||||||
|
db_go
|
||||||
|
fi
|
||||||
|
JICOFO_SECRET="$RET"
|
||||||
|
|
||||||
|
JICOFO_AUTH_DOMAIN="auth.$JVB_HOSTNAME"
|
||||||
|
|
||||||
# detect dpkg-reconfigure, just delete old links
|
# detect dpkg-reconfigure, just delete old links
|
||||||
db_get jitsi-meet-prosody/jvb-hostname
|
db_get jitsi-meet-prosody/jvb-hostname
|
||||||
JVB_HOSTNAME_OLD=$RET
|
JVB_HOSTNAME_OLD=$RET
|
||||||
|
@ -38,7 +74,7 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# stores the hostname so we will reuse it later, like in purge
|
# stores the hostname so we will reuse it later, like in purge
|
||||||
db_set jitsi-meet-prosody/jvb-hostname $JVB_HOSTNAME
|
db_set jitsi-meet-prosody/jvb-hostname "$JVB_HOSTNAME"
|
||||||
|
|
||||||
# and we're done with debconf
|
# and we're done with debconf
|
||||||
db_stop
|
db_stop
|
||||||
|
@ -68,21 +104,21 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# UPGRADE to server side focus check if focus is configured
|
# UPGRADE to server side focus check if focus is configured
|
||||||
if [ -f $PROSODY_HOST_CONFIG ] && ! grep -q "VirtualHost \"auth.$JVB_HOSTNAME\"" $PROSODY_HOST_CONFIG; then
|
if [ -f $PROSODY_HOST_CONFIG ] && ! grep -q "VirtualHost \"$JICOFO_AUTH_DOMAIN\"" $PROSODY_HOST_CONFIG; then
|
||||||
echo -e "\nVirtualHost \"auth.$JVB_HOSTNAME\"" >> $PROSODY_HOST_CONFIG
|
echo -e "\nVirtualHost \"$JICOFO_AUTH_DOMAIN\"" >> $PROSODY_HOST_CONFIG
|
||||||
echo -e " authentication = \"internal_plain\"\n" >> $PROSODY_HOST_CONFIG
|
echo -e " authentication = \"internal_plain\"\n" >> $PROSODY_HOST_CONFIG
|
||||||
sed -i "s/Component \"conference.$JVB_HOSTNAME\" \"muc\"/Component \"conference.$JVB_HOSTNAME\" \"muc\"\nadmins = { \"$JICOFO_AUTH_USER@auth.$JVB_HOSTNAME\" }\n/g" $PROSODY_HOST_CONFIG
|
sed -i "s/Component \"conference.$JVB_HOSTNAME\" \"muc\"/Component \"conference.$JVB_HOSTNAME\" \"muc\"\nadmins = { \"$JICOFO_AUTH_USER@$JICOFO_AUTH_DOMAIN\" }\n/g" $PROSODY_HOST_CONFIG
|
||||||
echo -e "Component \"focus.$JVB_HOSTNAME\"" >> $PROSODY_HOST_CONFIG
|
echo -e "Component \"focus.$JVB_HOSTNAME\"" >> $PROSODY_HOST_CONFIG
|
||||||
echo -e " component_secret=\"$JICOFO_SECRET\"\n" >> $PROSODY_HOST_CONFIG
|
echo -e " component_secret=\"$JICOFO_SECRET\"\n" >> $PROSODY_HOST_CONFIG
|
||||||
PROSODY_CREATE_JICOFO_USER="true"
|
PROSODY_CREATE_JICOFO_USER="true"
|
||||||
# UPGRADE to server side focus on old config(/etc/prosody/prosody.cfg.lua)
|
# UPGRADE to server side focus on old config(/etc/prosody/prosody.cfg.lua)
|
||||||
elif [ ! -f $PROSODY_HOST_CONFIG ] && ! grep -q "VirtualHost \"auth.$JVB_HOSTNAME\"" $PROSODY_CONFIG_OLD; then
|
elif [ ! -f $PROSODY_HOST_CONFIG ] && ! grep -q "VirtualHost \"$JICOFO_AUTH_DOMAIN\"" $PROSODY_CONFIG_OLD; then
|
||||||
echo -e "\nVirtualHost \"auth.$JVB_HOSTNAME\"" >> $PROSODY_CONFIG_OLD
|
echo -e "\nVirtualHost \"$JICOFO_AUTH_DOMAIN\"" >> $PROSODY_CONFIG_OLD
|
||||||
echo -e " authentication = \"internal_plain\"\n" >> $PROSODY_CONFIG_OLD
|
echo -e " authentication = \"internal_plain\"\n" >> $PROSODY_CONFIG_OLD
|
||||||
if ! grep -q "admins = { }" $PROSODY_CONFIG_OLD; then
|
if ! grep -q "admins = { }" $PROSODY_CONFIG_OLD; then
|
||||||
echo -e "admins = { \"$JICOFO_AUTH_USER@auth.$JVB_HOSTNAME\" }\n" >> $PROSODY_CONFIG_OLD
|
echo -e "admins = { \"$JICOFO_AUTH_USER@$JICOFO_AUTH_DOMAIN\" }\n" >> $PROSODY_CONFIG_OLD
|
||||||
else
|
else
|
||||||
sed -i "s/admins = { }/admins = { \"$JICOFO_AUTH_USER@auth.$JVB_HOSTNAME\" }\n/g" $PROSODY_CONFIG_OLD
|
sed -i "s/admins = { }/admins = { \"$JICOFO_AUTH_USER@$JICOFO_AUTH_DOMAIN\" }\n/g" $PROSODY_CONFIG_OLD
|
||||||
fi
|
fi
|
||||||
echo -e "Component \"focus.$JVB_HOSTNAME\"" >> $PROSODY_CONFIG_OLD
|
echo -e "Component \"focus.$JVB_HOSTNAME\"" >> $PROSODY_CONFIG_OLD
|
||||||
echo -e " component_secret=\"$JICOFO_SECRET\"\n" >> $PROSODY_CONFIG_OLD
|
echo -e " component_secret=\"$JICOFO_SECRET\"\n" >> $PROSODY_CONFIG_OLD
|
||||||
|
@ -109,8 +145,6 @@ case "$1" in
|
||||||
|
|
||||||
if [ "$PROSODY_CONFIG_PRESENT" = "false" ]; then
|
if [ "$PROSODY_CONFIG_PRESENT" = "false" ]; then
|
||||||
invoke-rc.d prosody restart
|
invoke-rc.d prosody restart
|
||||||
invoke-rc.d jitsi-videobridge restart
|
|
||||||
invoke-rc.d jicofo restart
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,9 @@ case "$1" in
|
||||||
rm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua
|
rm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua
|
||||||
rm -f /etc/prosody/conf.d/$JVB_HOSTNAME.cfg.lua
|
rm -f /etc/prosody/conf.d/$JVB_HOSTNAME.cfg.lua
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Clear the debconf variable
|
||||||
|
db_purge
|
||||||
;;
|
;;
|
||||||
|
|
||||||
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
|
|
|
@ -2,3 +2,29 @@ Template: jitsi-meet-prosody/jvb-hostname
|
||||||
Type: string
|
Type: string
|
||||||
_Description: The hostname of the current installation:
|
_Description: The hostname of the current installation:
|
||||||
The value for the hostname that is set in Jitsi Videobridge installation.
|
The value for the hostname that is set in Jitsi Videobridge installation.
|
||||||
|
|
||||||
|
Template: jitsi-videobridge/jvb-hostname
|
||||||
|
Type: string
|
||||||
|
_Description: The hostname of the current installation:
|
||||||
|
The value for the hostname that is set in Jitsi Videobridge installation.
|
||||||
|
|
||||||
|
Template: jitsi-videobridge/jvbsecret
|
||||||
|
Type: password
|
||||||
|
_Description: Jitsi Videobridge Component secret:
|
||||||
|
The secret used by Jitsi Videobridge to connect to xmpp server as component.
|
||||||
|
|
||||||
|
Template: jicofo/jicofo-authuser
|
||||||
|
Type: string
|
||||||
|
Default: focus
|
||||||
|
_Description: Jicofo username:
|
||||||
|
The jicofo needs an authenticated admin user to connect to xmpp server.
|
||||||
|
|
||||||
|
Template: jicofo/jicofo-authpassword
|
||||||
|
Type: password
|
||||||
|
_Description: Jicofo user password:
|
||||||
|
The secret used to connect to xmpp server as jicofo user.
|
||||||
|
|
||||||
|
Template: jicofo/jicofosecret
|
||||||
|
Type: password
|
||||||
|
_Description: Jicofo Component secret:
|
||||||
|
The secret used to connect to xmpp server as component
|
||||||
|
|
|
@ -21,17 +21,12 @@ set -e
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
|
|
||||||
if [ -f "/etc/jitsi/videobridge/config" ] ; then
|
|
||||||
. /etc/jitsi/videobridge/config
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "/etc/jitsi/jicofo/config" ] ; then
|
|
||||||
. /etc/jitsi/jicofo/config
|
|
||||||
fi
|
|
||||||
|
|
||||||
# loading debconf
|
# loading debconf
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
db_get jitsi-meet-prosody/jvb-hostname
|
||||||
|
JVB_HOSTNAME="$RET"
|
||||||
|
|
||||||
db_get jitsi-meet-tokens/appid
|
db_get jitsi-meet-tokens/appid
|
||||||
if [ "$RET" = "false" ] ; then
|
if [ "$RET" = "false" ] ; then
|
||||||
echo "Application ID is mandatory"
|
echo "Application ID is mandatory"
|
||||||
|
@ -45,14 +40,10 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
APP_SECRET=$RET
|
APP_SECRET=$RET
|
||||||
|
|
||||||
# We can adjust Prosody config only if there is Jvb or Jicofo domain configured
|
|
||||||
PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"
|
PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"
|
||||||
if [ ! -f "$PROSODY_HOST_CONFIG" ] ; then
|
|
||||||
PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JICOFO_HOSTNAME.cfg.lua"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Store config filename for purge
|
# Store config filename for purge
|
||||||
db_set jitsi-meet-prosody/prosody_config $PROSODY_HOST_CONFIG
|
db_set jitsi-meet-prosody/prosody_config "$PROSODY_HOST_CONFIG"
|
||||||
|
|
||||||
db_stop
|
db_stop
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,8 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
purge)
|
purge)
|
||||||
|
# Clear the debconf variable
|
||||||
|
db_purge
|
||||||
;;
|
;;
|
||||||
|
|
||||||
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# postinst script for jitsi-meet
|
# postinst script for jitsi-meet-web-config
|
||||||
#
|
#
|
||||||
# see: dh_installdeb(1)
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
@ -20,13 +20,19 @@ set -e
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
|
|
||||||
JVB_ETC_CONFIG="/etc/jitsi/videobridge/config"
|
|
||||||
|
|
||||||
. $JVB_ETC_CONFIG
|
|
||||||
|
|
||||||
# loading debconf
|
# loading debconf
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
# try to get host from jitsi-videobridge
|
||||||
|
db_get jitsi-videobridge/jvb-hostname
|
||||||
|
if [ -z "$RET" ] ; then
|
||||||
|
# server hostname
|
||||||
|
db_set jitsi-videobridge/jvb-hostname "localhost"
|
||||||
|
db_input critical jitsi-videobridge/jvb-hostname || true
|
||||||
|
db_go
|
||||||
|
fi
|
||||||
|
JVB_HOSTNAME="$RET"
|
||||||
|
|
||||||
# detect dpkg-reconfigure
|
# detect dpkg-reconfigure
|
||||||
RECONFIGURING="false"
|
RECONFIGURING="false"
|
||||||
db_get jitsi-meet/jvb-hostname
|
db_get jitsi-meet/jvb-hostname
|
||||||
|
@ -49,22 +55,54 @@ case "$1" in
|
||||||
if [ "$NGINX_INSTALL_CHECK" = "installed" ] || [ "$NGINX_INSTALL_CHECK" = "unpacked" ] ; then
|
if [ "$NGINX_INSTALL_CHECK" = "installed" ] || [ "$NGINX_INSTALL_CHECK" = "unpacked" ] ; then
|
||||||
FORCE_NGINX="true"
|
FORCE_NGINX="true"
|
||||||
fi
|
fi
|
||||||
|
APACHE_INSTALL_CHECK="$(dpkg-query -f '${Status}' -W 'apache2' 2>/dev/null | awk '{print $3}' || true)"
|
||||||
|
if [ "$APACHE_INSTALL_CHECK" = "installed" ] || [ "$APACHE_INSTALL_CHECK" = "unpacked" ] ; then
|
||||||
|
FORCE_APACHE="true"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if first time config ask for certs, or if we are reconfiguring
|
||||||
|
if [ -z "$JVB_HOSTNAME_OLD" ] || [ "$RECONFIGURING" = "true" ] ; then
|
||||||
# SSL for nginx
|
# SSL for nginx
|
||||||
db_get jitsi-meet/cert-choice
|
db_get jitsi-meet/cert-choice
|
||||||
CERT_CHOICE="$RET"
|
CERT_CHOICE="$RET"
|
||||||
UPLOADED_CERT_CHOICE="A certificate is available and the files are uploaded on the server"
|
UPLOADED_CERT_CHOICE="A certificate is available and the files are uploaded on the server"
|
||||||
|
|
||||||
|
if [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ] ; then
|
||||||
|
db_set jitsi-meet/cert-path-key "/etc/ssl/$JVB_HOSTNAME.key"
|
||||||
|
db_input critical jitsi-meet/cert-path-key || true
|
||||||
|
db_go
|
||||||
|
db_get jitsi-meet/cert-path-key
|
||||||
|
CERT_KEY="$RET"
|
||||||
|
db_set jitsi-meet/cert-path-crt "/etc/ssl/$JVB_HOSTNAME.crt"
|
||||||
|
db_input critical jitsi-meet/cert-path-crt || true
|
||||||
|
db_go
|
||||||
|
db_get jitsi-meet/cert-path-crt
|
||||||
|
CERT_CRT="$RET"
|
||||||
|
else
|
||||||
|
# create self-signed certs
|
||||||
|
CERT_KEY="/etc/jitsi/meet/$JVB_HOSTNAME.key"
|
||||||
|
CERT_CRT="/etc/jitsi/meet/$JVB_HOSTNAME.crt"
|
||||||
|
HOST="$( (hostname -s; echo localhost) | head -n 1)"
|
||||||
|
DOMAIN="$( (hostname -d; echo localdomain) | head -n 1)"
|
||||||
|
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj \
|
||||||
|
"/O=$DOMAIN/OU=$HOST/CN=$JVB_HOSTNAME/emailAddress=webmaster@$HOST.$DOMAIN" \
|
||||||
|
-keyout $CERT_KEY \
|
||||||
|
-out $CERT_CRT
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# jitsi meet
|
# jitsi meet
|
||||||
JITSI_MEET_CONFIG="/etc/jitsi/meet/$JVB_HOSTNAME-config.js"
|
JITSI_MEET_CONFIG="/etc/jitsi/meet/$JVB_HOSTNAME-config.js"
|
||||||
if [ ! -f $JITSI_MEET_CONFIG ] ; then
|
if [ ! -f $JITSI_MEET_CONFIG ] ; then
|
||||||
cp /usr/share/doc/jitsi-meet/config.js $JITSI_MEET_CONFIG
|
cp /usr/share/doc/jitsi-meet-web/config.js $JITSI_MEET_CONFIG
|
||||||
sed -i "s/jitsi-meet.example.com/$JVB_HOSTNAME/g" $JITSI_MEET_CONFIG
|
sed -i "s/jitsi-meet.example.com/$JVB_HOSTNAME/g" $JITSI_MEET_CONFIG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# this is new install let's configure jvb to serve meet
|
# this is new install let's configure jvb to serve meet
|
||||||
if [[ -z $FORCE_NGINX && ( -z $JVB_HOSTNAME_OLD || "$JVB_SERVE" = "true" ) ]] ; then
|
# no-nginx, no-apache installed on machine, this is new install or reconfiguring old one which have jvb_serve set
|
||||||
|
if [[ -z "$FORCE_NGINX" && -z "$FORCE_APACHE" && ( -z "$JVB_HOSTNAME_OLD" || ( "$JVB_SERVE" = "true" && "$RECONFIGURING" = "true" )) ]] ; then
|
||||||
|
|
||||||
|
JVB_ETC_CONFIG="/etc/jitsi/videobridge/config"
|
||||||
JVB_CONFIG="/etc/jitsi/videobridge/sip-communicator.properties"
|
JVB_CONFIG="/etc/jitsi/videobridge/sip-communicator.properties"
|
||||||
|
|
||||||
# this is a reconfigure, lets just delete old links
|
# this is a reconfigure, lets just delete old links
|
||||||
|
@ -112,34 +150,19 @@ case "$1" in
|
||||||
chmod 755 /etc/authbind/byport/443
|
chmod 755 /etc/authbind/byport/443
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ] ; then
|
CERT_P12="/etc/jitsi/videobridge/$JVB_HOSTNAME.p12"
|
||||||
# create jks from uploaded certs
|
CERT_JKS="/etc/jitsi/videobridge/$JVB_HOSTNAME.jks"
|
||||||
|
# create jks from certs
|
||||||
openssl pkcs12 -export \
|
openssl pkcs12 -export \
|
||||||
-in /etc/ssl/$JVB_HOSTNAME.crt \
|
-in $CERT_CRT -inkey $CERT_KEY -passout pass:changeit > $CERT_P12
|
||||||
-inkey /etc/ssl/$JVB_HOSTNAME.key \
|
keytool -importkeystore -destkeystore $CERT_JKS \
|
||||||
-passout pass:changeit > /etc/jitsi/videobridge/$JVB_HOSTNAME.p12
|
-srckeystore $CERT_P12 -srcstoretype pkcs12 \
|
||||||
keytool -importkeystore \
|
|
||||||
-srckeystore /etc/jitsi/videobridge/$JVB_HOSTNAME.p12 \
|
|
||||||
-destkeystore /etc/jitsi/videobridge/$JVB_HOSTNAME.jks \
|
|
||||||
-srcstoretype pkcs12 \
|
|
||||||
-noprompt -storepass changeit -srcstorepass changeit
|
-noprompt -storepass changeit -srcstorepass changeit
|
||||||
else
|
|
||||||
# create jks from self-signed certs
|
|
||||||
openssl pkcs12 -export \
|
|
||||||
-in /var/lib/prosody/$JVB_HOSTNAME.crt \
|
|
||||||
-inkey /var/lib/prosody/$JVB_HOSTNAME.key \
|
|
||||||
-passout pass:changeit > /etc/jitsi/videobridge/$JVB_HOSTNAME.p12
|
|
||||||
keytool -importkeystore \
|
|
||||||
-srckeystore /etc/jitsi/videobridge/$JVB_HOSTNAME.p12 \
|
|
||||||
-destkeystore /etc/jitsi/videobridge/$JVB_HOSTNAME.jks \
|
|
||||||
-srcstoretype pkcs12 \
|
|
||||||
-noprompt -storepass changeit -srcstorepass changeit
|
|
||||||
fi
|
|
||||||
|
|
||||||
db_set jitsi-meet/jvb-serve "true"
|
db_set jitsi-meet/jvb-serve "true"
|
||||||
|
|
||||||
invoke-rc.d jitsi-videobridge restart
|
invoke-rc.d jitsi-videobridge restart
|
||||||
elif [[ "$FORCE_NGINX" = "true" || ( -n $JVB_HOSTNAME_OLD && "$JVB_SERVE" = "false" ) ]] ; then
|
elif [[ "$FORCE_NGINX" = "true" && ( -z "$JVB_HOSTNAME_OLD" || "$RECONFIGURING" = "true" ) ]] ; then
|
||||||
# this is a reconfigure, lets just delete old links
|
# this is a reconfigure, lets just delete old links
|
||||||
if [ "$RECONFIGURING" = "true" ] ; then
|
if [ "$RECONFIGURING" = "true" ] ; then
|
||||||
rm -f /etc/nginx/sites-enabled/$JVB_HOSTNAME_OLD.conf
|
rm -f /etc/nginx/sites-enabled/$JVB_HOSTNAME_OLD.conf
|
||||||
|
@ -148,7 +171,7 @@ case "$1" in
|
||||||
|
|
||||||
# nginx conf
|
# nginx conf
|
||||||
if [ ! -f /etc/nginx/sites-available/$JVB_HOSTNAME.conf ] ; then
|
if [ ! -f /etc/nginx/sites-available/$JVB_HOSTNAME.conf ] ; then
|
||||||
cp /usr/share/doc/jitsi-meet/jitsi-meet.example /etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
cp /usr/share/doc/jitsi-meet-web/jitsi-meet.example /etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
||||||
if [ ! -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf ] ; then
|
if [ ! -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf ] ; then
|
||||||
ln -s /etc/nginx/sites-available/$JVB_HOSTNAME.conf /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf
|
ln -s /etc/nginx/sites-available/$JVB_HOSTNAME.conf /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf
|
||||||
fi
|
fi
|
||||||
|
@ -156,28 +179,21 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ] ; then
|
if [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ] ; then
|
||||||
db_set jitsi-meet/cert-path-key "/etc/ssl/$JVB_HOSTNAME.key"
|
|
||||||
db_input critical jitsi-meet/cert-path-key || true
|
|
||||||
db_go
|
|
||||||
db_get jitsi-meet/cert-path-key
|
|
||||||
CERT_KEY="$RET"
|
|
||||||
db_set jitsi-meet/cert-path-crt "/etc/ssl/$JVB_HOSTNAME.crt"
|
|
||||||
db_input critical jitsi-meet/cert-path-crt || true
|
|
||||||
db_go
|
|
||||||
db_get jitsi-meet/cert-path-crt
|
|
||||||
CERT_CRT="$RET"
|
|
||||||
# replace self-signed certificate paths with user provided ones
|
# replace self-signed certificate paths with user provided ones
|
||||||
CERT_KEY_ESC=$(echo $CERT_KEY | sed 's/\./\\\./g')
|
CERT_KEY_ESC=$(echo $CERT_KEY | sed 's/\./\\\./g')
|
||||||
CERT_KEY_ESC=$(echo $CERT_KEY_ESC | sed 's/\//\\\//g')
|
CERT_KEY_ESC=$(echo $CERT_KEY_ESC | sed 's/\//\\\//g')
|
||||||
sed -i "s/ssl_certificate_key\ \/var\/lib\/prosody\/.*key/ssl_certificate_key\ $CERT_KEY_ESC/g" \
|
sed -i "s/ssl_certificate_key\ \/etc\/jitsi\/meet\/.*key/ssl_certificate_key\ $CERT_KEY_ESC/g" \
|
||||||
/etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
/etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
||||||
CERT_CRT_ESC=$(echo $CERT_CRT | sed 's/\./\\\./g')
|
CERT_CRT_ESC=$(echo $CERT_CRT | sed 's/\./\\\./g')
|
||||||
CERT_CRT_ESC=$(echo $CERT_CRT_ESC | sed 's/\//\\\//g')
|
CERT_CRT_ESC=$(echo $CERT_CRT_ESC | sed 's/\//\\\//g')
|
||||||
sed -i "s/ssl_certificate\ \/var\/lib\/prosody\/.*crt/ssl_certificate\ $CERT_CRT_ESC/g" \
|
sed -i "s/ssl_certificate\ \/etc\/jitsi\/meet\/.*crt/ssl_certificate\ $CERT_CRT_ESC/g" \
|
||||||
/etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
/etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
invoke-rc.d nginx reload
|
invoke-rc.d nginx reload
|
||||||
|
elif [[ "$FORCE_APACHE" = "true" && ( -z "$JVB_HOSTNAME_OLD" || "$RECONFIGURING" = "true" ) ]] ; then
|
||||||
|
echo "Apache2 server is installed, automatic configuration is not supported at this time."
|
||||||
|
echo "You need to configure yourselve the virtual host for your domain."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# and we're done with debconf
|
# and we're done with debconf
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# postrm script for jitsi-meet
|
# postrm script for jitsi-meet-web-config
|
||||||
#
|
#
|
||||||
# see: dh_installdeb(1)
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
@ -37,7 +37,11 @@ case "$1" in
|
||||||
rm -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf
|
rm -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf
|
||||||
rm -f /etc/jitsi/videobridge/$JVB_HOSTNAME.jks
|
rm -f /etc/jitsi/videobridge/$JVB_HOSTNAME.jks
|
||||||
rm -f /etc/jitsi/videobridge/$JVB_HOSTNAME.p12
|
rm -f /etc/jitsi/videobridge/$JVB_HOSTNAME.p12
|
||||||
|
rm -f /etc/jitsi/meet/$JVB_HOSTNAME.key
|
||||||
|
rm -f /etc/jitsi/meet/$JVB_HOSTNAME.crt
|
||||||
fi
|
fi
|
||||||
|
# Clear the debconf variable
|
||||||
|
db_purge
|
||||||
;;
|
;;
|
||||||
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
;;
|
;;
|
|
@ -30,3 +30,8 @@ Type: boolean
|
||||||
Default: false
|
Default: false
|
||||||
_Description: for internal use
|
_Description: for internal use
|
||||||
for internal use.
|
for internal use.
|
||||||
|
|
||||||
|
Template: jitsi-videobridge/jvb-hostname
|
||||||
|
Type: string
|
||||||
|
_Description: Hostname:
|
||||||
|
The Jitsi Meet web config package needs the DNS hostname of your instance.
|
|
@ -1 +1 @@
|
||||||
[type: gettext/rfc822deb] jitsi-meet.templates
|
[type: gettext/rfc822deb] jitsi-meet-web-config.templates
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the jitsi-meet-web package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
#
|
#
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: jitsi-meet\n"
|
"Project-Id-Version: jitsi-meet-web\n"
|
||||||
"Report-Msgid-Bugs-To: jitsi-meet@packages.debian.org\n"
|
"Report-Msgid-Bugs-To: jitsi-meet-web@packages.debian.org\n"
|
||||||
"POT-Creation-Date: 2014-09-03 17:26+0200\n"
|
"POT-Creation-Date: 2016-11-15 22:39+0000\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -15,25 +19,25 @@ msgstr ""
|
||||||
|
|
||||||
#. Type: select
|
#. Type: select
|
||||||
#. Choices
|
#. Choices
|
||||||
#: ../jitsi-meet.templates:1001
|
#: ../jitsi-meet-web-config.templates:1001
|
||||||
msgid "Self-signed certificate will be generated"
|
msgid "Self-signed certificate will be generated"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Type: select
|
#. Type: select
|
||||||
#. Choices
|
#. Choices
|
||||||
#: ../jitsi-meet.templates:1001
|
#: ../jitsi-meet-web-config.templates:1001
|
||||||
msgid "A certificate is available and the files are uploaded on the server"
|
msgid "A certificate is available and the files are uploaded on the server"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Type: select
|
#. Type: select
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:1002
|
#: ../jitsi-meet-web-config.templates:1002
|
||||||
msgid "SSL certificate for the Jitsi Meet instance"
|
msgid "SSL certificate for the Jitsi Meet instance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Type: select
|
#. Type: select
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:1002
|
#: ../jitsi-meet-web-config.templates:1002
|
||||||
msgid ""
|
msgid ""
|
||||||
"Jitsi Meet is best to be set up with an SSL certificate. Having no "
|
"Jitsi Meet is best to be set up with an SSL certificate. Having no "
|
||||||
"certificate, a self-signed one will be generated. Having a certificate "
|
"certificate, a self-signed one will be generated. Having a certificate "
|
||||||
|
@ -44,13 +48,13 @@ msgstr ""
|
||||||
|
|
||||||
#. Type: string
|
#. Type: string
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:2001
|
#: ../jitsi-meet-web-config.templates:2001
|
||||||
msgid "Full local server path to the SSL key file:"
|
msgid "Full local server path to the SSL key file:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Type: string
|
#. Type: string
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:2001
|
#: ../jitsi-meet-web-config.templates:2001
|
||||||
msgid ""
|
msgid ""
|
||||||
"The full path to the SSL key file on the server. If it has not been "
|
"The full path to the SSL key file on the server. If it has not been "
|
||||||
"uploaded, now is a good time to do so."
|
"uploaded, now is a good time to do so."
|
||||||
|
@ -58,13 +62,13 @@ msgstr ""
|
||||||
|
|
||||||
#. Type: string
|
#. Type: string
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:3001
|
#: ../jitsi-meet-web-config.templates:3001
|
||||||
msgid "Full local server path to the SSL certificate file:"
|
msgid "Full local server path to the SSL certificate file:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Type: string
|
#. Type: string
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:3001
|
#: ../jitsi-meet-web-config.templates:3001
|
||||||
msgid ""
|
msgid ""
|
||||||
"The full path to the SSL certificate file on the server. If you haven't "
|
"The full path to the SSL certificate file on the server. If you haven't "
|
||||||
"uploaded it, now is a good time to upload it in another console."
|
"uploaded it, now is a good time to upload it in another console."
|
||||||
|
@ -72,27 +76,38 @@ msgstr ""
|
||||||
|
|
||||||
#. Type: string
|
#. Type: string
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:4001
|
#: ../jitsi-meet-web-config.templates:4001
|
||||||
msgid "The hostname of the current installation:"
|
msgid "The hostname of the current installation:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Type: string
|
#. Type: string
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:4001
|
#: ../jitsi-meet-web-config.templates:4001
|
||||||
msgid ""
|
msgid ""
|
||||||
"The value for the hostname that is set in Jitsi Videobridge installation."
|
"The value for the hostname that is set in Jitsi Videobridge installation."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. Type: boolean
|
||||||
#. Type: string
|
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:5001
|
#: ../jitsi-meet-web-config.templates:5001
|
||||||
msgid "for internal use"
|
msgid "for internal use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. Type: boolean
|
||||||
|
#. Description
|
||||||
|
#: ../jitsi-meet-web-config.templates:5001
|
||||||
|
msgid "for internal use."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. Type: string
|
#. Type: string
|
||||||
#. Description
|
#. Description
|
||||||
#: ../jitsi-meet.templates:5001
|
#: ../jitsi-meet-web-config.templates:6001
|
||||||
msgid ""
|
msgid "Hostname:"
|
||||||
"Jitsi Videobridge installation can use its internal jetty to serve static meet pages."
|
msgstr ""
|
||||||
|
|
||||||
|
#. Type: string
|
||||||
|
#. Description
|
||||||
|
#: ../jitsi-meet-web-config.templates:6001
|
||||||
|
msgid ""
|
||||||
|
"The Jitsi Meet web config package needs the DNS hostname of your instance."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -15,8 +15,8 @@ server {
|
||||||
|
|
||||||
add_header Strict-Transport-Security "max-age=31536000";
|
add_header Strict-Transport-Security "max-age=31536000";
|
||||||
|
|
||||||
ssl_certificate /var/lib/prosody/jitsi-meet.example.com.crt;
|
ssl_certificate /etc/jitsi/meet/jitsi-meet.example.com.crt;
|
||||||
ssl_certificate_key /var/lib/prosody/jitsi-meet.example.com.key;
|
ssl_certificate_key /etc/jitsi/meet/jitsi-meet.example.com.key;
|
||||||
|
|
||||||
root /usr/share/jitsi-meet;
|
root /usr/share/jitsi-meet;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
Loading…
Reference in New Issue