File tree Expand file tree Collapse file tree 5 files changed +46
-5
lines changed Expand file tree Collapse file tree 5 files changed +46
-5
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,8 @@ services:
171
171
- XMPP_MUC_DOMAIN
172
172
- XMPP_RECORDER_DOMAIN
173
173
- XMPP_PORT
174
- - WHITEBOARD_ENABLED
175
174
- WHITEBOARD_COLLAB_SERVER_PUBLIC_URL
175
+ - WHITEBOARD_COLLAB_SERVER_URL_BASE
176
176
networks :
177
177
meet.jitsi :
178
178
depends_on :
Original file line number Diff line number Diff line change @@ -73,13 +73,24 @@ TZ=UTC
73
73
# Etherpad integration (for document sharing)
74
74
#
75
75
76
- # Set etherpad-lite URL in docker local network (uncomment to enable)
76
+ # Set the etherpad-lite URL in the docker local network (uncomment to enable)
77
77
#ETHERPAD_URL_BASE=http://etherpad.meet.jitsi:9001
78
78
79
79
# Set etherpad-lite public URL, including /p/ pad path fragment (uncomment to enable)
80
80
#ETHERPAD_PUBLIC_URL=https://etherpad.my.domain/p/
81
81
82
82
83
+ #
84
+ # Whiteboard integration
85
+ #
86
+
87
+ # Set the excalidraw-backend URL in the docker local network (uncomment to enable)
88
+ #WHITEBOARD_COLLAB_SERVER_URL_BASE=http://whiteboard.meet.jitsi
89
+
90
+ # Set the excalidraw-backend public URL (uncomment to enable)
91
+ #WHITEBOARD_COLLAB_SERVER_PUBLIC_URL=https://whiteboard.meet.my.domain
92
+
93
+
83
94
#
84
95
# Basic Jigasi configuration options (needed for SIP gateway support)
85
96
#
Original file line number Diff line number Diff line change @@ -134,6 +134,21 @@ location ^~ /etherpad/ {
134
134
}
135
135
{{ end }}
136
136
137
+ {{ if .Env.WHITEBOARD_COLLAB_SERVER_URL_BASE }}
138
+ # whiteboard (excalidraw-backend)
139
+ location = /socket.io/ {
140
+ proxy_buffering off;
141
+ proxy_cache_bypass $http_upgrade;
142
+
143
+ proxy_http_version 1.1;
144
+ proxy_set_header Upgrade $http_upgrade;
145
+ proxy_set_header Connection "upgrade";
146
+ proxy_set_header X-Forwarded-For $remote_addr;
147
+
148
+ proxy_pass {{ .Env.WHITEBOARD_COLLAB_SERVER_URL_BASE }}/socket.io/?$args;
149
+ }
150
+ {{ end }}
151
+
137
152
location ~ ^/([^/?&:'"]+)$ {
138
153
try_files $uri @root_path;
139
154
}
Original file line number Diff line number Diff line change 62
62
{ { $ENABLE_LOCAL_RECORDING_SELF_START := . Env . ENABLE_LOCAL_RECORDING_SELF_START | default "false" | toBool - } }
63
63
{ { $DISABLE_PROFILE := . Env . DISABLE_PROFILE | default "false" | toBool - } }
64
64
{ { $ROOM_PASSWORD_DIGITS := . Env . ROOM_PASSWORD_DIGITS | default "false" - } }
65
- { { $WHITEBOARD_COLLAB_SERVER_PUBLIC_URL := . Env . WHITEBOARD_COLLAB_SERVER_PUBLIC_URL | default "" - } }
66
- { { $WHITEBOARD_ENABLED := . Env . WHITEBOARD_ENABLED | default "false" | toBool - } }
65
+ { { $WHITEBOARD_ENABLED := or ( . Env . WHITEBOARD_COLLAB_SERVER_PUBLIC_URL | default "" | toBool) (.Env.WHITEBOARD_COLLAB_SERVER_URL_BASE | default " " | toBool) }}
67
66
{ { $TESTING_AV1_SUPPORT := . Env . TESTING_AV1_SUPPORT | default "false" | toBool - } }
68
67
69
68
// Video configuration.
@@ -554,7 +553,11 @@ config.e2eping.maxMessagePerSecond = {{ .Env.E2EPING_MAX_MESSAGE_PER_SECOND }};
554
553
// Settings for the Excalidraw whiteboard integration.
555
554
config . whiteboard = {
556
555
enabled : { { $WHITEBOARD_ENABLED } } ,
557
- collabServerBaseUrl : '{{ $WHITEBOARD_COLLAB_SERVER_PUBLIC_URL }}'
556
+ { { if . Env . WHITEBOARD_COLLAB_SERVER_PUBLIC_URL - } }
557
+ collabServerBaseUrl : '{{ .Env.WHITEBOARD_COLLAB_SERVER_PUBLIC_URL }}' ;
558
+ { { else if . Env . WHITEBOARD_COLLAB_SERVER_URL_BASE - } }
559
+ collabServerBaseUrl : '{{ $PUBLIC_URL }}'
560
+ { { end - } }
558
561
} ;
559
562
560
563
// Testing
Original file line number Diff line number Diff line change
1
+ version : ' 3.5'
2
+
3
+ services :
4
+ whiteboard :
5
+ image : jitsi/excalidraw-backend:21
6
+ restart : ${RESTART_POLICY:-unless-stopped}
7
+ depends_on :
8
+ - web
9
+ networks :
10
+ meet.jitsi :
11
+ aliases :
12
+ - whiteboard.meet.jitsi
You can’t perform that action at this time.
0 commit comments