Jitsi : reactivation colibri port + activation rest API + ajustement CI pour pouvoir changer de port

This commit is contained in:
Gitouche 2024-02-17 18:36:29 +01:00
parent 6f933105ae
commit de6a3e0fd3
3 changed files with 5 additions and 3 deletions

View File

@ -10,12 +10,12 @@ jitsi:
script:
- cd podman-jitsi
- ./ci_build-images.sh
- GARBAYE_JITSI_URL=https://jitsi.garbaye.fr GARBAYE_JITSI_ENV_LISTENPORT=18085 GARBAYE_JITSI_ENV_JICOFORESTPORT=18888 ./10_install.sh
- GARBAYE_JITSI_URL=https://jitsi.garbaye.fr GARBAYE_JITSI_ENV_LISTENPORT=18085 GARBAYE_JITSI_ENV_JICOFORESTPORT=18888 GARBAYE_JITSI_ENV_COLIBRIPORT=18080 ./10_install.sh
- ./20_enable.sh
- ./30_start.sh && sleep 10
- ./40_stop.sh
- ./30_start.sh && sleep 10
- GARBAYE_JITSI_URL=https://jitsi.garbaye.fr GARBAYE_JITSI_ENV_LISTENPORT=18085 GARBAYE_JITSI_ENV_JICOFORESTPORT=18888 ./50_update.sh
- GARBAYE_JITSI_URL=https://jitsi.garbaye.fr GARBAYE_JITSI_ENV_LISTENPORT=18085 GARBAYE_JITSI_ENV_JICOFORESTPORT=18888 GARBAYE_JITSI_ENV_COLIBRIPORT=18080 ./50_update.sh
- ./40_stop.sh
- ./70_disable.sh
- ./80_destroy.sh

View File

@ -45,7 +45,6 @@ cp env.example .env
sed_in_place "image: jitsi/" "image: git.garbaye.fr/garbaye/jitsi-" docker-compose.yml
sed_in_place "^ - '\${HTTP_PORT}:80'" " - '\${listen_if}:\${HTTP_PORT}:80'" docker-compose.yml
sed_in_place "^ - '\${HTTPS_PORT}:443'" "# - '\${HTTPS_PORT}:443'" docker-compose.yml
sed_in_place "^ - '127.0.0.1:\${JVB_COLIBRI_PORT:-8080}:8080'" "# - '127.0.0.1:\${JVB_COLIBRI_PORT:-8080}:8080'" docker-compose.yml
# Patch env file
sed_in_place "^HTTP_PORT=8000" "HTTP_PORT=${listen_port}" .env
@ -60,8 +59,10 @@ echo "XMPP_SERVER=prosody" >> .env
echo "XMPP_BOSH_URL_BASE=http://prosody:5280" >> .env
echo "JVB_PORT=${listen_port}" >> .env
echo "JICOFO_REST_PORT=${jicofo_port}" >> .env
echo "JVB_COLIBRI_PORT=${colibri_port}" >> .env
echo "DISABLE_HTTPS=1" >> .env
echo "ENABLE_IPV6=0" >> .env
echo "COLIBRI_REST_ENABLED=1" >> .env
export listen_if
export listen_port

View File

@ -5,6 +5,7 @@ version='stable-9258'
listen_if="${GARBAYE_JITSI_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_JITSI_ENV_LISTENPORT:-8085}"
jicofo_port="${GARBAYE_JITSI_ENV_JICOFORESTPORT:-8888}"
colibri_port="${GARBAYE_JITSI_ENV_COLIBRIPORT:-8080}"
## mandatory ENV vars
envvars='GARBAYE_JITSI_URL'
## internal vars : do not touch