etherpad: add ability to use a external server

This commit is contained in:
Mathieu Brunot 2020-06-27 16:21:31 +02:00 committed by GitHub
parent a7563d4f82
commit edecacd0c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 5 deletions

View File

@ -30,6 +30,7 @@ services:
- XMPP_MUC_DOMAIN
- XMPP_RECORDER_DOMAIN
- ETHERPAD_URL_BASE
- ETHERPAD_PUBLIC_URL
- TZ
- JIBRI_BREWERY_MUC
- JIBRI_PENDING_TIMEOUT

View File

@ -68,9 +68,11 @@ TZ=UTC
# Etherpad integration (for document sharing)
#
# Set etherpad-lite URL (uncomment to enable)
# Set etherpad-lite URL in docker local network (uncomment to enable)
#ETHERPAD_URL_BASE=http://etherpad.meet.jitsi:9001
# Set etherpad-lite public URL (uncomment to enable)
#ETHERPAD_PUBLIC_URL=https://etherpad.my.domain
#
# Basic Jigasi configuration options (needed for SIP gateway support)

View File

@ -26,6 +26,7 @@ services:
- XMPP_MUC_DOMAIN
- XMPP_RECORDER_DOMAIN
- ETHERPAD_URL_BASE
- ETHERPAD_PUBLIC_URL
- TZ
- JIBRI_BREWERY_MUC
- JIBRI_PENDING_TIMEOUT

View File

@ -27,6 +27,7 @@ services:
- XMPP_MUC_DOMAIN
- XMPP_RECORDER_DOMAIN
- ETHERPAD_URL_BASE
- ETHERPAD_PUBLIC_URL
- TZ
- JIBRI_BREWERY_MUC
- JIBRI_PENDING_TIMEOUT

View File

@ -97,10 +97,16 @@ if [[ ! -f /config/config.js ]]; then
/config/config.js
fi
if [[ ! -z "${ETHERPAD_URL_BASE}" && -z "$(grep -om1 'etherpad_base:' /config/config.js)" ]]; then
sed -i \
-e "/enableWelcomePage/a\ etherpad_base: '${PUBLIC_URL}/etherpad/p/'," \
/config/config.js
if [[ -z "$(grep -om1 'etherpad_base:' /config/config.js)" ]]; then
if [[ ! -z "${ETHERPAD_PUBLIC_URL}" ]]; then
sed -i \
-e "/enableWelcomePage/a\ etherpad_base: '${ETHERPAD_PUBLIC_URL}/p/'," \
/config/config.js
elif [[ ! -z "${ETHERPAD_URL_BASE}" ]]; then
sed -i \
-e "/enableWelcomePage/a\ etherpad_base: '${PUBLIC_URL}/etherpad/p/'," \
/config/config.js
fi
fi
if [[ $ENABLE_TRANSCRIPTIONS -eq 1 || "$ENABLE_TRANSCRIPTIONS" == "true" ]]; then