mirror of
https://github.com/jitsi/docker-jitsi-meet.git
synced 2025-08-06 14:17:17 +02:00
feat(whiteboard) add builtin whiteboard integration
Closes: https://github.com/jitsi/docker-jitsi-meet/pull/1480 Co-authored-by: Tugrul Dogan <tugrul.ufuk@gmail.com> Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
This commit is contained in:
parent
49bd1657d5
commit
b4604f3078
@ -171,8 +171,8 @@ services:
|
|||||||
- XMPP_MUC_DOMAIN
|
- XMPP_MUC_DOMAIN
|
||||||
- XMPP_RECORDER_DOMAIN
|
- XMPP_RECORDER_DOMAIN
|
||||||
- XMPP_PORT
|
- XMPP_PORT
|
||||||
- WHITEBOARD_ENABLED
|
|
||||||
- WHITEBOARD_COLLAB_SERVER_PUBLIC_URL
|
- WHITEBOARD_COLLAB_SERVER_PUBLIC_URL
|
||||||
|
- WHITEBOARD_COLLAB_SERVER_URL_BASE
|
||||||
networks:
|
networks:
|
||||||
meet.jitsi:
|
meet.jitsi:
|
||||||
depends_on:
|
depends_on:
|
||||||
|
13
env.example
13
env.example
@ -73,13 +73,24 @@ TZ=UTC
|
|||||||
# Etherpad integration (for document sharing)
|
# Etherpad integration (for document sharing)
|
||||||
#
|
#
|
||||||
|
|
||||||
# Set etherpad-lite URL in docker local network (uncomment to enable)
|
# Set the etherpad-lite URL in the docker local network (uncomment to enable)
|
||||||
#ETHERPAD_URL_BASE=http://etherpad.meet.jitsi:9001
|
#ETHERPAD_URL_BASE=http://etherpad.meet.jitsi:9001
|
||||||
|
|
||||||
# Set etherpad-lite public URL, including /p/ pad path fragment (uncomment to enable)
|
# Set etherpad-lite public URL, including /p/ pad path fragment (uncomment to enable)
|
||||||
#ETHERPAD_PUBLIC_URL=https://etherpad.my.domain/p/
|
#ETHERPAD_PUBLIC_URL=https://etherpad.my.domain/p/
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Whiteboard integration
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set the excalidraw-backend URL in the docker local network (uncomment to enable)
|
||||||
|
#WHITEBOARD_COLLAB_SERVER_URL_BASE=http://whiteboard.meet.jitsi
|
||||||
|
|
||||||
|
# Set the excalidraw-backend public URL (uncomment to enable)
|
||||||
|
#WHITEBOARD_COLLAB_SERVER_PUBLIC_URL=https://whiteboard.meet.my.domain
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Basic Jigasi configuration options (needed for SIP gateway support)
|
# Basic Jigasi configuration options (needed for SIP gateway support)
|
||||||
#
|
#
|
||||||
|
@ -134,6 +134,21 @@ location ^~ /etherpad/ {
|
|||||||
}
|
}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Env.WHITEBOARD_COLLAB_SERVER_URL_BASE }}
|
||||||
|
# whiteboard (excalidraw-backend)
|
||||||
|
location = /socket.io/ {
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
|
||||||
|
proxy_pass {{ .Env.WHITEBOARD_COLLAB_SERVER_URL_BASE }}/socket.io/?$args;
|
||||||
|
}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
location ~ ^/([^/?&:'"]+)$ {
|
location ~ ^/([^/?&:'"]+)$ {
|
||||||
try_files $uri @root_path;
|
try_files $uri @root_path;
|
||||||
}
|
}
|
||||||
|
@ -62,8 +62,7 @@
|
|||||||
{{ $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 := or (.Env.WHITEBOARD_COLLAB_SERVER_PUBLIC_URL | default "" | toBool) (.Env.WHITEBOARD_COLLAB_SERVER_URL_BASE | default "" | toBool) }}
|
||||||
{{ $WHITEBOARD_ENABLED := .Env.WHITEBOARD_ENABLED | default "false" | toBool -}}
|
|
||||||
{{ $TESTING_AV1_SUPPORT := .Env.TESTING_AV1_SUPPORT | default "false" | toBool -}}
|
{{ $TESTING_AV1_SUPPORT := .Env.TESTING_AV1_SUPPORT | default "false" | toBool -}}
|
||||||
|
|
||||||
// Video configuration.
|
// Video configuration.
|
||||||
@ -554,7 +553,11 @@ config.e2eping.maxMessagePerSecond = {{ .Env.E2EPING_MAX_MESSAGE_PER_SECOND }};
|
|||||||
// Settings for the Excalidraw whiteboard integration.
|
// Settings for the Excalidraw whiteboard integration.
|
||||||
config.whiteboard = {
|
config.whiteboard = {
|
||||||
enabled: {{ $WHITEBOARD_ENABLED }},
|
enabled: {{ $WHITEBOARD_ENABLED }},
|
||||||
collabServerBaseUrl: '{{ $WHITEBOARD_COLLAB_SERVER_PUBLIC_URL }}'
|
{{ if .Env.WHITEBOARD_COLLAB_SERVER_PUBLIC_URL -}}
|
||||||
|
collabServerBaseUrl: '{{ .Env.WHITEBOARD_COLLAB_SERVER_PUBLIC_URL }}';
|
||||||
|
{{ else if .Env.WHITEBOARD_COLLAB_SERVER_URL_BASE -}}
|
||||||
|
collabServerBaseUrl: '{{ $PUBLIC_URL }}'
|
||||||
|
{{ end -}}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Testing
|
// Testing
|
||||||
|
12
whiteboard.yml
Normal file
12
whiteboard.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
version: '3.5'
|
||||||
|
|
||||||
|
services:
|
||||||
|
whiteboard:
|
||||||
|
image: jitsi/excalidraw-backend:21
|
||||||
|
restart: ${RESTART_POLICY:-unless-stopped}
|
||||||
|
depends_on:
|
||||||
|
- web
|
||||||
|
networks:
|
||||||
|
meet.jitsi:
|
||||||
|
aliases:
|
||||||
|
- whiteboard.meet.jitsi
|
Loading…
Reference in New Issue
Block a user