Skip to content

Commit 2280f6b

Browse files
committed
feat(web) add ability to run the web container targetting JaaS
If JAAS_APP_ID is set, the config will be updated to point to the production JaaS deployment for the given App ID. If JAAS_USE_STAGING is set to a truthy value the configuration will point to stage.8x8.vc rather than the production 8x8.vc.
1 parent ff49cd9 commit 2280f6b

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

web/rootfs/defaults/settings-config.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,3 +567,54 @@ config.whiteboard = {
567567
config.testing = {
568568
enableAv1Support: {{ $TESTING_AV1_SUPPORT }}
569569
};
570+
571+
// JaaS support: pre-configure image if JAAS_APP_ID was set.
572+
{{ if .Env.JAAS_APP_ID -}}
573+
{{ $JAAS_USE_STAGING := .Env.JAAS_USE_STAGING | default "false" | toBool -}}
574+
{{ $JAAS_DOMAIN := $JAAS_USE_STAGING | ternary "stage.8x8.vc" "8x8.vc" -}}
575+
{{ $VO_API_DOMAIN := $JAAS_USE_STAGING | ternary "api-vo-pilot.cloudflare.jitsi.net" "api-vo.cloudflare.jitsi.net" -}}
576+
577+
config.hosts.domain = '{{ $JAAS_DOMAIN }}';
578+
config.hosts.muc = 'conference.{{ .Env.JAAS_APP_ID }}.{{ $JAAS_DOMAIN }}';
579+
config.hosts.focus = 'focus.{{ $JAAS_DOMAIN }}';
580+
581+
config.analytics.rtcstatsEnabled = true;
582+
config.analytics.rtcstatsStoreLogs = true;
583+
config.analytics.rtcstatsUseLegacy = false;
584+
config.analytics.rtcstatsEndpoint = 'wss://rtcstats-server-8x8.jitsi.net/';
585+
config.analytics.rtcstatsPollInterval = 10000;
586+
config.analytics.rtcstatsSendSdp = true;
587+
588+
config.bosh = 'https://{{ $JAAS_DOMAIN }}/{{ .Env.JAAS_APP_ID }}/http-bind';
589+
config.websocket = 'wss://{{ $JAAS_DOMAIN }}/{{ .Env.JAAS_APP_ID }}/xmpp-websocket';
590+
config.websocketKeepAliveUrl = 'https://{{ $JAAS_DOMAIN }}/{{ .Env.JAAS_APP_ID }}/_unlock';
591+
config.conferenceRequestUrl = 'https://{{ $JAAS_DOMAIN }}/{{ .Env.JAAS_APP_ID }}/conference-request/v1';
592+
593+
config.hiddenDomain = 'recorder.{{ $JAAS_DOMAIN }}';
594+
config.hiddenFromRecorderFeatureEnabled = true;
595+
config.enableEmailInStats = true;
596+
597+
config.jaasActuatorUrl = 'https://{{ $VO_API_DOMAIN }}/jaas-actuator';
598+
config.jaasTokenUrl = 'https://{{ $VO_API_DOMAIN }}/token-mapping';
599+
config.jaasConferenceCreatorUrl = 'https://{{ $VO_API_DOMAIN }}/vmms-conference-mapper/v1/access/conference-creator';
600+
config.webhookProxyUrl = 'https://{{ $VO_API_DOMAIN }}/webhook-proxy';
601+
config.billingCounterUrl = 'https://{{ $VO_API_DOMAIN }}/billing-counter/v1/connection';
602+
config.brandingDataUrl = 'https://{{ $VO_API_DOMAIN }}/branding/public/v1/conferences';
603+
config.dialInNumbersUrl = 'https://{{ $VO_API_DOMAIN }}/vmms-conference-mapper/access/v1/dids';
604+
config.dialInConfCodeUrl = 'https://{{ $VO_API_DOMAIN }}/vmms-conference-mapper/v1/access';
605+
config.dialOutAuthUrl = 'https://{{ $VO_API_DOMAIN }}/phone-authorize';
606+
config.dialOutRegionUrl = 'https://{{ $VO_API_DOMAIN }}/customer-configs/v1/outbound-destination';
607+
config.peopleSearchUrl = 'https://{{ $VO_API_DOMAIN }}/v1/directory/search';
608+
config.inviteServiceUrl = 'https://{{ $VO_API_DOMAIN }}/v1/meeting/invite';
609+
config.recordingSharingUrl = 'https://{{ $VO_API_DOMAIN }}/jaas-recordings/link';
610+
config.peopleSearchQueryTypes = ['user','conferenceRooms'];
611+
config.sipInviteUrl = 'https://{{ $VO_API_DOMAIN }}/sip-jibri-gateway/jibris/invite';
612+
config.jaasFeedbackMetadataURL = 'https://{{ $VO_API_DOMAIN }}/webhook-proxy/feedback';
613+
614+
{{ if $JAAS_USE_STAGING -}}
615+
config.whiteboard.collabServerBaseUrl = 'https://eght-excalidraw-backend-pilot.cloudflare.jitsi.net';
616+
{{ else -}}
617+
config.whiteboard.collabServerBaseUrl = 'https://eght-excalidraw-backend.cloudflare.jitsi.net';
618+
{{ end -}}
619+
config.whiteboard.userLimit = 25;
620+
{{ end -}}

0 commit comments

Comments
 (0)