File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed
web/rootfs/etc/cont-init.d Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ services:
3030 - XMPP_MUC_DOMAIN
3131 - XMPP_RECORDER_DOMAIN
3232 - ETHERPAD_URL_BASE
33+ - ETHERPAD_PUBLIC_URL
3334 - TZ
3435 - JIBRI_BREWERY_MUC
3536 - JIBRI_PENDING_TIMEOUT
Original file line number Diff line number Diff line change @@ -68,9 +68,11 @@ TZ=UTC
6868# Etherpad integration (for document sharing)
6969#
7070
71- # Set etherpad-lite URL (uncomment to enable)
71+ # Set etherpad-lite URL in docker local network (uncomment to enable)
7272#ETHERPAD_URL_BASE=http://etherpad.meet.jitsi:9001
7373
74+ # Set etherpad-lite public URL (uncomment to enable)
75+ #ETHERPAD_PUBLIC_URL=https://etherpad.my.domain
7476
7577#
7678# Basic Jigasi configuration options (needed for SIP gateway support)
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ services:
2626 - XMPP_MUC_DOMAIN
2727 - XMPP_RECORDER_DOMAIN
2828 - ETHERPAD_URL_BASE
29+ - ETHERPAD_PUBLIC_URL
2930 - TZ
3031 - JIBRI_BREWERY_MUC
3132 - JIBRI_PENDING_TIMEOUT
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ services:
2727 - XMPP_MUC_DOMAIN
2828 - XMPP_RECORDER_DOMAIN
2929 - ETHERPAD_URL_BASE
30+ - ETHERPAD_PUBLIC_URL
3031 - TZ
3132 - JIBRI_BREWERY_MUC
3233 - JIBRI_PENDING_TIMEOUT
Original file line number Diff line number Diff line change @@ -97,10 +97,16 @@ if [[ ! -f /config/config.js ]]; then
9797 /config/config.js
9898 fi
9999
100- if [[ ! -z "${ETHERPAD_URL_BASE}" && -z "$(grep -om1 'etherpad_base:' /config/config.js)" ]]; then
101- sed -i \
102- -e "/enableWelcomePage/a\ etherpad_base: '${PUBLIC_URL}/etherpad/p/'," \
103- /config/config.js
100+ if [[ -z "$(grep -om1 'etherpad_base:' /config/config.js)" ]]; then
101+ if [[ ! -z "${ETHERPAD_PUBLIC_URL}" ]]; then
102+ sed -i \
103+ -e "/enableWelcomePage/a\ etherpad_base: '${ETHERPAD_PUBLIC_URL}/p/'," \
104+ /config/config.js
105+ elif [[ ! -z "${ETHERPAD_URL_BASE}" ]]; then
106+ sed -i \
107+ -e "/enableWelcomePage/a\ etherpad_base: '${PUBLIC_URL}/etherpad/p/'," \
108+ /config/config.js
109+ fi
104110 fi
105111
106112 if [[ $ENABLE_TRANSCRIPTIONS -eq 1 || "$ENABLE_TRANSCRIPTIONS" == "true" ]]; then
You can’t perform that action at this time.
0 commit comments