2021-06-04 17:36:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
|
|
|
|
source ${ABSDIR}/../functions.sh
|
|
|
|
source ${ABSDIR}/vars.sh
|
|
|
|
|
|
|
|
ensure_pwd_is_scriptdir
|
|
|
|
ensure_not_root
|
|
|
|
|
2021-06-06 12:52:33 +00:00
|
|
|
if [[ ! -d ~/${confvolume} ]]; then
|
|
|
|
echo "Error : conf volume ~/${confvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install."
|
2021-06-06 12:17:26 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-06-04 17:36:50 +00:00
|
|
|
curl -s -- "https://codeload.github.com/jitsi/docker-jitsi-meet/tar.gz/refs/tags/${version}" | tar xzv --strip-components 1 docker-jitsi-meet-${version}/docker-compose.yml docker-jitsi-meet-${version}/env.example docker-jitsi-meet-${version}/gen-passwords.sh
|
|
|
|
cp env.example .env
|
|
|
|
./gen-passwords.sh
|
|
|
|
|
|
|
|
# Patch docker-compose.yml
|
|
|
|
sed_in_place "^ image: jitsi/" " image: docker.io/jitsi/" docker-compose.yml
|
|
|
|
sed_in_place "^ environment:" " env_file:\n - .env\n environment:" docker-compose.yml
|
|
|
|
sed_in_place "^ - '\${JVB_TCP_PORT}:\${JVB_TCP_PORT}'" "# - '\${JVB_TCP_PORT}:\${JVB_TCP_PORT}'" docker-compose.yml
|
|
|
|
sed_in_place "^ - '\${HTTPS_PORT}:443'" "# - '\${HTTPS_PORT}:443'" docker-compose.yml
|
|
|
|
|
|
|
|
# Patch env file
|
|
|
|
sed_in_place "^HTTP_PORT=8000" "HTTP_PORT=8085" .env
|
|
|
|
sed_in_place "^HTTPS_PORT=8443" "#HTTPS_PORT=8443" .env
|
|
|
|
sed_in_place "^TZ=UTC" "TZ=Europe/Paris" .env
|
2021-06-06 12:28:20 +00:00
|
|
|
sed_in_place "^#PUBLIC_URL=https://meet.example.com" "PUBLIC_URL=${GARBAYE_JITSI_URL}" .env
|
2021-09-18 18:57:09 +00:00
|
|
|
sed_in_place "^#DOCKER_HOST_ADDRESS=192.168.1.1" "DOCKER_HOST_ADDRESS=${GARBAYE_JITSI_PRIV_IP}" .env
|
2021-06-04 17:36:50 +00:00
|
|
|
sed_in_place "^#ENABLE_LETSENCRYPT=1" "ENABLE_LETSENCRYPT=0" .env
|
|
|
|
sed_in_place "^#ENABLE_AUTH=1" "ENABLE_AUTH=0" .env
|
|
|
|
sed_in_place "^XMPP_SERVER=xmpp.meet.jitsi" "XMPP_SERVER=prosody" .env
|
|
|
|
sed_in_place "^XMPP_BOSH_URL_BASE=http://xmpp.meet.jitsi:5280" "XMPP_BOSH_URL_BASE=http://prosody:5280" .env
|
|
|
|
sed_in_place "^JVB_PORT=10000" "JVB_PORT=8085" .env
|
|
|
|
sed_in_place "^JVB_TCP_HARVESTER_DISABLED=true" "JVB_TCP_HARVESTER_DISABLED=false" .env
|
|
|
|
sed_in_place "^#ENABLE_RECORDING=1" "ENABLE_RECORDING=0" .env
|
|
|
|
sed_in_place "^#DISABLE_HTTPS=1" "DISABLE_HTTPS=1" .env
|
|
|
|
sed_in_place "^#ENABLE_HTTP_REDIRECT=1" "ENABLE_HTTP_REDIRECT=0" .env
|
|
|
|
sed_in_place "^#ENABLE_IPV6=1" "ENABLE_IPV6=0" .env
|
|
|
|
|
2021-09-18 21:44:27 +00:00
|
|
|
echo "ENABLE_P2P=false" >> .env
|
|
|
|
|
2021-09-18 19:01:48 +00:00
|
|
|
podman-compose up -d && echo Pod build and started
|
2021-06-04 17:36:50 +00:00
|
|
|
|
|
|
|
# cleanup
|
2022-01-15 19:32:22 +00:00
|
|
|
shred -u .env .env.bak env.example gen-passwords.sh docker-compose.yml
|