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:
committed by
Saúl Ibarra Corretgé
parent
49bd1657d5
commit
b4604f3078
@@ -134,6 +134,21 @@ location ^~ /etherpad/ {
|
||||
}
|
||||
{{ 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 ~ ^/([^/?&:'"]+)$ {
|
||||
try_files $uri @root_path;
|
||||
}
|
||||
|
||||
@@ -62,8 +62,7 @@
|
||||
{{ $ENABLE_LOCAL_RECORDING_SELF_START := .Env.ENABLE_LOCAL_RECORDING_SELF_START | default "false" | toBool -}}
|
||||
{{ $DISABLE_PROFILE := .Env.DISABLE_PROFILE | default "false" | toBool -}}
|
||||
{{ $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 -}}
|
||||
{{ $WHITEBOARD_ENABLED := or (.Env.WHITEBOARD_COLLAB_SERVER_PUBLIC_URL | default "" | toBool) (.Env.WHITEBOARD_COLLAB_SERVER_URL_BASE | default "" | toBool) }}
|
||||
{{ $TESTING_AV1_SUPPORT := .Env.TESTING_AV1_SUPPORT | default "false" | toBool -}}
|
||||
|
||||
// Video configuration.
|
||||
@@ -554,7 +553,11 @@ config.e2eping.maxMessagePerSecond = {{ .Env.E2EPING_MAX_MESSAGE_PER_SECOND }};
|
||||
// Settings for the Excalidraw whiteboard integration.
|
||||
config.whiteboard = {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user