Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to easily customize the application (name and logo) #1957

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- AMPLITUDE_ID
- ANALYTICS_SCRIPT_URLS
- ANALYTICS_WHITELISTED_EVENTS
- APP_NAME
- AUDIO_QUALITY_OPUS_BITRATE
- AUTO_CAPTION_ON_RECORD
- BRANDING_DATA_URL
Expand Down Expand Up @@ -115,6 +116,7 @@ services:
- LETSENCRYPT_DOMAIN
- LETSENCRYPT_EMAIL
- LETSENCRYPT_USE_STAGING
- LOGO_URL
- MATOMO_ENDPOINT
- MATOMO_SITE_ID
- MICROSOFT_API_APP_CLIENT_ID
Expand Down
3 changes: 3 additions & 0 deletions web/rootfs/defaults/interface-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if .Env.APP_NAME -}}
interfaceConfig.APP_NAME = '{{ .Env.APP_NAME | js }}';
{{ end -}}
4 changes: 4 additions & 0 deletions web/rootfs/defaults/system-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@ config.websocket = 'wss://{{ $PUBLIC_URL_DOMAIN }}/xmpp-websocket';
config.bridgeChannel = {
preferSctp: {{ $JVB_PREFER_SCTP }}
};

{{ if .Env.LOGO_URL -}}
config.defaultLogoUrl = '{{ .Env.LOGO_URL }}';
{{ end -}}
5 changes: 5 additions & 0 deletions web/rootfs/etc/cont-init.d/10-config
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ if [[ -f /config/custom-config.js ]]; then
fi

cp /defaults/interface_config.js /config/interface_config.js
tpl /defaults/interface-config.js >> /config/interface_config.js
if [[ -f /config/custom-interface_config.js ]]; then
cat /config/custom-interface_config.js >> /config/interface_config.js
fi

if [[ -n "${LOGO_URL}" ]]; then
ln -s /config/custom-images /usr/share/jitsi-meet/images/custom-images
fi