Skip to content

Instantly share code, notes, and snippets.

@ramonlsouza
Last active January 26, 2021 20:00
Show Gist options
  • Save ramonlsouza/e45ecb5a5ab1bc3bc0a4f18e5cd93113 to your computer and use it in GitHub Desktop.
Save ramonlsouza/e45ecb5a5ab1bc3bc0a4f18e5cd93113 to your computer and use it in GitHub Desktop.
nginx config. file for bbb-html5
# replace /etc/bigbluebutton/nginx/bbb-html.nginx with the contents of this file
rewrite ^/html5client/[0-9]+/(fonts|locales|compatibility|resources|svgs)/(.*) /html5client/$1/$2;
location /html5client/locales {
alias /usr/share/meteor/bundle/programs/web.browser/app/locales;
}
location /html5client/compatibility {
alias /usr/share/meteor/bundle/programs/web.browser/app/compatibility;
}
location /html5client/resources {
alias /usr/share/meteor/bundle/programs/web.browser/app/resources;
}
location /html5client/svgs {
alias /usr/share/meteor/bundle/programs/web.browser/app/svgs;
}
location /html5client/fonts {
alias /usr/share/meteor/bundle/programs/web.browser/app/fonts;
}
location ~ ^/html5client/(?<instanceId>[0-9]+)/ {
proxy_pass http://127.0.0.1:$meteor_port;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location /_timesync {
proxy_pass http://127.0.0.1:4000;
}
# add this to the top of the /etc/nginx/sites-enabled/bigbluebutton file
map $instanceId $meteor_port {
1 4000;
2 4001;
3 4002;
4 4003;
5 4004;
6 4005;
7 4006;
8 4007;
9 4008;
10 4009;
11 4010;
12 4011;
13 4012;
14 4013;
15 4014;
16 4015;
17 4016;
18 4017;
19 4018;
20 4019;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment