4d6f4b3ded
* Refactor: Make bundle using webpack * Fix: restore after install codes and a few settings * Fix: build script folder permission * Refactor: Remove support to async import on audio bridges * Upgrade npm using nvm * Avoid questions on npm ci execution * Let npm ci install dev dependencies (as we need the build tools here) * Fix: enconding * Fix: old lock files * Remove: bbb-config dependency to bbb-html5 service, bbb-html5 isn't a service anymore * Fix: TS errors * Fix: eslint * Fix: chat styles * npm install with "lockfileVersion": 3 (newer npm) * build: allow nodejs 22 * node 22; drop meteor from CI and bbb-conf * TEMP: use bbb-install without mongo but with node 22 and newer image * build: relax nodejs condition to not trip 22.6 * build: ensure dir /usr/share/bigbluebutton/nginx exists * init sites-available/bbb; drop disable-transparent- * nginx complaining of missing file and ; * TMP: print status of services * WIP: tweak nginx location to debug * Fix: webcam widgets alignments * akka-apps -- update location of settings.yml * build: add locales path for nginx * docs and config changes for removal of meteor * Fix: build encoding and locales enpoint folder path * build: set wss url for media * Add: Enable minimizer and modify to Terser * Fix: TS errors --------- Co-authored-by: Tiago Jacobs <tiago.jacobs@gmail.com> Co-authored-by: Anton Georgiev <anto.georgiev@gmail.com> Co-authored-by: Anton Georgiev <antobinary@users.noreply.github.com>
50 lines
2.1 KiB
Bash
50 lines
2.1 KiB
Bash
#!/bin/bash -e
|
|
|
|
BIGBLUEBUTTON_USER=bigbluebutton
|
|
BBB_HTML5_SETTINGS_FILE=/var/bigbluebutton/html5-client/private/config/settings.yml
|
|
BBB_RELEASE_FILE=/etc/bigbluebutton/bigbluebutton-release
|
|
|
|
HOST=$(grep -v '#' /etc/bigbluebutton/bbb-web.properties | sed -n '/^bigbluebutton.web.serverURL/{s/.*\///;p}')
|
|
|
|
chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton/html5-client/
|
|
|
|
if [ ! -L /etc/nginx/sites-enabled/bigbluebutton ]; then
|
|
mkdir -p /etc/nginx/sites-enabled
|
|
ln -s /etc/nginx/sites-available/bigbluebutton /etc/nginx/sites-enabled/bigbluebutton
|
|
fi
|
|
|
|
|
|
WSURL=$(grep -v '#' /etc/bigbluebutton/bbb-web.properties | sed -n '/^bigbluebutton.web.serverURL/{s/.*=//;p}' | sed 's/https/wss/g' | sed s'/http/ws/g')
|
|
|
|
yq e -i ".public.kurento.wsUrl = \"$WSURL/bbb-webrtc-sfu\"" $BBB_HTML5_SETTINGS_FILE
|
|
|
|
yq e -i ".public.pads.url = \"$PROTOCOL://$HOST/pad\"" $BBB_HTML5_SETTINGS_FILE
|
|
|
|
sed -i "s/proxy_pass .*/proxy_pass http:\/\/$IP:5066;/g" /usr/share/bigbluebutton/nginx/sip.nginx
|
|
sed -i "s/server_name .*/server_name $IP;/g" /etc/nginx/sites-available/bigbluebutton
|
|
|
|
# set full BBB version in settings.yml so it can be displayed in the client
|
|
if [ -f $BBB_RELEASE_FILE ] && [ -f $BBB_HTML5_SETTINGS_FILE ]; then
|
|
BBB_FULL_VERSION=$(cat $BBB_RELEASE_FILE | sed -n '/^BIGBLUEBUTTON_RELEASE/{s/.*=//;p}' | tail -n 1)
|
|
echo "setting public.app.bbbServerVersion: $BBB_FULL_VERSION in $BBB_HTML5_SETTINGS_FILE "
|
|
yq e -i ".public.app.bbbServerVersion = \"$BBB_FULL_VERSION\"" $BBB_HTML5_SETTINGS_FILE
|
|
fi
|
|
|
|
# Remove old overrides
|
|
if [ -f /etc/systemd/system/mongod.service.d/override-mongo.conf ] \
|
|
|| [ -f /etc/systemd/system/mongod.service.d/override.conf ] \
|
|
|| [ -f /usr/lib/systemd/system/mongod.service.d/mongod-service-override.conf ] ; then
|
|
rm -f /etc/systemd/system/mongod.service.d/override-mongo.conf
|
|
rm -f /etc/systemd/system/mongod.service.d/override.conf
|
|
rm -f /usr/lib/systemd/system/mongod.service.d/mongod-service-override.conf
|
|
systemctl daemon-reload
|
|
fi
|
|
|
|
chown root:root /usr/lib/systemd/system
|
|
|
|
chmod go+r $BBB_HTML5_SETTINGS_FILE
|
|
#
|
|
# Restart nginx to take advantage of the updates to nginx configuration
|
|
#
|
|
reloadService nginx
|