summaryrefslogtreecommitdiffstats
path: root/roles/bbb/templates/bigbluebutton
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2026-11-18 21:56:42 -0500
committerSacha Chua <sacha@sachachua.com>2026-11-18 21:56:42 -0500
commit7a15c0e86303ef121ca86411dc6d28f222847a8e (patch)
tree3d210403ae4a692cb59bca756843c82e578969ed /roles/bbb/templates/bigbluebutton
parente1ca3b8fed720dbfbbc3b8a1afccd3564949296b (diff)
downloademacsconf-ansible-main.tar.xz
emacsconf-ansible-main.zip
Add more BigBlueButton configurationHEADmain
Diffstat (limited to 'roles/bbb/templates/bigbluebutton')
-rw-r--r--roles/bbb/templates/bigbluebutton60
1 files changed, 60 insertions, 0 deletions
diff --git a/roles/bbb/templates/bigbluebutton b/roles/bbb/templates/bigbluebutton
new file mode 100644
index 0000000..2fb7778
--- /dev/null
+++ b/roles/bbb/templates/bigbluebutton
@@ -0,0 +1,60 @@
+server_tokens off;
+
+server {
+ listen 80;
+ listen [::]:80;
+ server_name bbb.emacsverse.org;
+
+ location ^~ / {
+ return 301 https://$server_name$request_uri; #redirect HTTP to HTTPS
+ }
+
+ location ^~ /.well-known/acme-challenge/ {
+ allow all;
+ default_type "text/plain";
+ root /var/www/bigbluebutton-default/assets;
+ }
+
+ location = /.well-known/acme-challenge/ {
+ return 404;
+ }
+}
+
+set_real_ip_from 127.0.0.1;
+real_ip_header proxy_protocol;
+real_ip_recursive on;
+server {
+ # this double listening is intended. We terminate SSL on haproxy. HTTP2 is a
+ # binary protocol. haproxy has to decide which protocol is spoken. This is
+ # negotiated by ALPN.
+ #
+ # Depending on the ALPN value traffic is redirected to either port 82 (HTTP2,
+ # ALPN value h2) or 81 (HTTP 1.0 or HTTP 1.1, ALPN value http/1.1 or no value)
+
+ #listen 127.0.0.1:82 http2 proxy_protocol;
+ #listen [::1]:82;
+ listen 127.0.0.1:81 proxy_protocol;
+ listen [::1]:81;
+ server_name bbb.emacsverse.org;
+
+ # nginx does not know its external port/protocol behind haproxy, so use relative redirects.
+ absolute_redirect off;
+
+ # HSTS (uncomment to enable)
+ #add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
+
+ access_log /var/log/nginx/bigbluebutton.access.log;
+
+ # This variable is used instead of $scheme by bigbluebutton nginx include
+ # files, so $scheme can be overridden in reverse-proxy configurations.
+ set $real_scheme "https";
+
+ # BigBlueButton landing page.
+ location / {
+ root /var/www/bigbluebutton-default/assets;
+ try_files $uri @bbb-fe;
+ }
+
+ # Include specific rules for record and playback
+ include /etc/bigbluebutton/nginx/*.nginx;
+}