web: add ability to configure whiteboard

This commit is contained in:
Debendra Oli
2022-12-19 17:39:51 +05:45
committed by GitHub
parent ac123134ea
commit e219bcfc21
4 changed files with 11 additions and 2 deletions

View File

@@ -150,6 +150,8 @@ services:
- XMPP_MUC_DOMAIN - XMPP_MUC_DOMAIN
- XMPP_RECORDER_DOMAIN - XMPP_RECORDER_DOMAIN
- XMPP_PORT - XMPP_PORT
- WHITEBOARD_ENABLED
- WHITEBOARD_COLLAB_SERVER_BASE_URL
networks: networks:
meet.jitsi: meet.jitsi:

View File

@@ -156,6 +156,7 @@ VirtualHost "{{ $XMPP_DOMAIN }}"
"ping"; "ping";
"speakerstats"; "speakerstats";
"conference_duration"; "conference_duration";
"room_metadata";
{{ if $ENABLE_END_CONFERENCE }} {{ if $ENABLE_END_CONFERENCE }}
"end_conference"; "end_conference";
{{ end }} {{ end }}

View File

@@ -63,7 +63,8 @@
{{ $ENABLE_LOCAL_RECORDING_SELF_START := .Env.ENABLE_LOCAL_RECORDING_SELF_START | default "false" | toBool -}} {{ $ENABLE_LOCAL_RECORDING_SELF_START := .Env.ENABLE_LOCAL_RECORDING_SELF_START | default "false" | toBool -}}
{{ $DISABLE_PROFILE := .Env.DISABLE_PROFILE | default "false" | toBool -}} {{ $DISABLE_PROFILE := .Env.DISABLE_PROFILE | default "false" | toBool -}}
{{ $ROOM_PASSWORD_DIGITS := .Env.ROOM_PASSWORD_DIGITS | default "false" -}} {{ $ROOM_PASSWORD_DIGITS := .Env.ROOM_PASSWORD_DIGITS | default "false" -}}
{{ $WHITEBOARD_COLLAB_SERVER_PUBLIC_URL := .Env.WHITEBOARD_COLLAB_SERVER_PUBLIC_URL | default "" -}}
{{ $WHITEBOARD_ENABLED := .Env.WHITEBOARD_ENABLED | default "false" | toBool -}}
// Video configuration. // Video configuration.
// //
@@ -463,3 +464,8 @@ config.e2eping.maxConferenceSize = {{ .Env.E2EPING_MAX_CONFERENCE_SIZE }};
{{ if .Env.E2EPING_MAX_MESSAGE_PER_SECOND -}} {{ if .Env.E2EPING_MAX_MESSAGE_PER_SECOND -}}
config.e2eping.maxMessagePerSecond = {{ .Env.E2EPING_MAX_MESSAGE_PER_SECOND }}; config.e2eping.maxMessagePerSecond = {{ .Env.E2EPING_MAX_MESSAGE_PER_SECOND }};
{{ end }} {{ end }}
// Settings for the Excalidraw whiteboard integration.
if (!config.hasOwnProperty('whiteboard')) config.whiteboard = {};
config.whiteboard.enabled = {{ $WHITEBOARD_ENABLED }};
config.whiteboard.collabServerBaseUrl = '{{ $WHITEBOARD_COLLAB_SERVER_PUBLIC_URL }}';

View File

@@ -26,7 +26,7 @@ if (subdir.startsWith('<!--')) {
subdir = ''; subdir = '';
} }
if (subdomain) { if (subdomain) {
subdomain = subdomain.substr(0,subdomain.length-1).split('.').join('_').toLowerCase() + '.'; subdomain = subdomain.substring(0,subdomain.length-1).split('.').join('_').toLowerCase() + '.';
} }
config.hosts.muc = '{{ $XMPP_MUC_DOMAIN_PREFIX }}.' + subdomain + '{{ $XMPP_DOMAIN }}'; config.hosts.muc = '{{ $XMPP_MUC_DOMAIN_PREFIX }}.' + subdomain + '{{ $XMPP_DOMAIN }}';
{{ else -}} {{ else -}}