64e43e4331
* Add graphql API endpoint to BBB API This parameter will be required for the HTML5 client to discover the API endpoint of the GraphQL API so it can fetch its settings. * Fix: ensure API calls are headed towards the BBB Server In a cluster setup the URL that is visible in the browser is different from the URL of the BBB Server. The clients needs to contact the BBB server to retrieve information about the graphQL websocket and the graphql API. This patch adds the GraphQL API endpoint to the BBB API and changes the Client to use it. * Make GraphQL API endpoint configurable The default value should work for single node and cluster setups * Update docs to reflect changes required by cluster setup * fix eslint and typescript errors * Fix cluster setup docs - add missing parts for hasura - use consistent domain example.com * rename variable Co-authored-by: Gustavo Trott <gustavo@trott.com.br> * rename variable Co-authored-by: Gustavo Trott <gustavo@trott.com.br> * rename variable Co-authored-by: Gustavo Trott <gustavo@trott.com.br> * Update bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ApiController.groovy Co-authored-by: Gustavo Trott <gustavo@trott.com.br> * Update bigbluebutton-web/grails-app/conf/bigbluebutton.properties Co-authored-by: Gustavo Trott <gustavo@trott.com.br> --------- Co-authored-by: Daniel Schreiber <daniel.schreiber@hrz.tu-chemnitz.de> Co-authored-by: Gustavo Trott <gustavo@trott.com.br> |
||
---|---|---|
.. | ||
gradle/wrapper | ||
grails-app | ||
nginx-confs | ||
pres-checker | ||
src | ||
test | ||
wrapper | ||
.gitignore | ||
bbb-web.nginx | ||
build.gradle | ||
build.sh | ||
COPYING.LESSER | ||
deploy_to_usr_share.sh | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
grails-wrapper.jar | ||
grailsw | ||
grailsw.bat | ||
INSTALL | ||
loadbalancer.nginx | ||
README.md | ||
run-dev.sh | ||
run.sh | ||
settings.gradle | ||
turn-stun-servers.xml.tmpl |
BigBlueButton Web Grails 3 Deployment Procedure
Upgrade Gradle and Grails
# Install SDKMan if you don't have it yet.
curl -s "https://get.sdkman.io" | bash
# Install Gradle
sdk install gradle 5.1.1
# Install Grails
sdk install grails 3.3.9
Development
Build bbb-common-message
cd /bigbluebutton/bbb-common-message
./deploy.sh
Build bbb-common-web
cd bigbluebutton/bbb-common-web
./deploy.sh
Build and run bbb-web
cd bigbluebutton/bigbluebutton-web
# Make sure you don't have old libs lying around. Might cause issues.
# You need to to this only once to cleanup lib dir.
rm lib/*
./build.sh
# This will listen on port 8989 so you need to adjust your nginx config.
# If you've setup your nginx config to bbb-web dev, you don't need to do anything.
./run.sh
To run unit tests: grails test-app --stacktrace
Production
To package the application for production:
- Compile the application and package it use
grails assemble
- You now have the file
build/libs/bigbluebutton-0.10.0.war
- Create a new directory
mkdir exploded
- Navigate to that directory
cd exploded
- Extract the war content
jar -xvf ../build/libs/bigbluebutton-0.10.0.war
- Package the content of the new directory in a debian package then add service configuration. Install into
/usr/share/bbb-web
. - Use the systemd service file provided in build/package-template/bbb-web. App will be listening on port 8080
- To do custom config, edit
/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
Don't forget to use full directories path and replace the dot before the org with the full path to the exploded war.