开发BBB-Web
下面的部分将教你怎么开发bigbluebutton-web:
首先,你需要根据你的设置升级最新的bigbluebutton.properties文件。总的来说,你不得不改变URL和security salt,如果你不知道你的salt,运行命令 sudo bbb-conf --salt,
然后依次执行下面2条命令:
cd /home/firstuser/dev/bigbluebutton/
# Edit the file and change the values of bigbluebutton.web.serverURL and securitySalt.
# Make sure you don't include the "/bigbluebutton" at the end of your serverURL.
vi bigbluebutton-web/grails-app/conf/bigbluebutton.properties
现在你需要给你的用户账户添加访问幻灯片、上传演示文稿、写入日志文件的权限,依次执行下面2条命令:
sudo chmod -R ugo+rwx /var/bigbluebutton
sudo chmod -R ugo+rwx /var/log/bigbluebutton
现在你需要创建nginx文件,使其重定向到你的bbb-web开发目录中。执行命令:
echo "
# Handle request to bbb-web running within Tomcat. This is for
# the BBB-API and Presentation.
location /bigbluebutton {
proxy_pass http://127.0.0.1:8888;
proxy_redirect default;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
# Allow 30M uploaded presentation document.
client_max_body_size 30m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
include fastcgi_params;
}
" | sudo tee /etc/bigbluebutton/nginx/web_dev > /dev/null 2>&1
现在我们仅仅需要创建一个链接,以至于请求能够被重定向,然后重启nginx,依次执行下面2条命令: