settings-config.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. {{ $DEPLOYMENTINFO_USERREGION := .Env.DEPLOYMENTINFO_USERREGION | default "" -}}
  2. {{ $ENABLE_AUDIO_PROCESSING := .Env.ENABLE_AUDIO_PROCESSING | default "true" | toBool -}}
  3. {{ $ENABLE_BREAKOUT_ROOMS := .Env.ENABLE_BREAKOUT_ROOMS | default "true" | toBool -}}
  4. {{ $ENABLE_CALENDAR := .Env.ENABLE_CALENDAR | default "false" | toBool -}}
  5. {{ $ENABLE_FILE_RECORDING_SERVICE := .Env.ENABLE_FILE_RECORDING_SERVICE | default "false" | toBool -}}
  6. {{ $ENABLE_FILE_RECORDING_SERVICE_SHARING := .Env.ENABLE_FILE_RECORDING_SERVICE_SHARING | default "false" | toBool -}}
  7. {{ $ENABLE_IPV6 := .Env.ENABLE_IPV6 | default "true" | toBool -}}
  8. {{ $ENABLE_LIPSYNC := .Env.ENABLE_LIPSYNC | default "false" | toBool -}}
  9. {{ $ENABLE_NO_AUDIO_DETECTION := .Env.ENABLE_NO_AUDIO_DETECTION | default "true" | toBool -}}
  10. {{ $ENABLE_P2P := .Env.ENABLE_P2P | default "true" | toBool -}}
  11. {{ $ENABLE_PREJOIN_PAGE := .Env.ENABLE_PREJOIN_PAGE | default "true" | toBool -}}
  12. {{ $ENABLE_WELCOME_PAGE := .Env.ENABLE_WELCOME_PAGE | default "true" | toBool -}}
  13. {{ $ENABLE_CLOSE_PAGE := .Env.ENABLE_CLOSE_PAGE | default "false" | toBool -}}
  14. {{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "false" | toBool -}}
  15. {{ $ENABLE_REMB := .Env.ENABLE_REMB | default "true" | toBool -}}
  16. {{ $ENABLE_REQUIRE_DISPLAY_NAME := .Env.ENABLE_REQUIRE_DISPLAY_NAME | default "false" | toBool -}}
  17. {{ $ENABLE_SIMULCAST := .Env.ENABLE_SIMULCAST | default "true" | toBool -}}
  18. {{ $ENABLE_STATS_ID := .Env.ENABLE_STATS_ID | default "false" | toBool -}}
  19. {{ $ENABLE_STEREO := .Env.ENABLE_STEREO | default "false" | toBool -}}
  20. {{ $ENABLE_OPUS_RED := .Env.ENABLE_OPUS_RED | default "false" | toBool -}}
  21. {{ $ENABLE_TALK_WHILE_MUTED := .Env.ENABLE_TALK_WHILE_MUTED | default "false" | toBool -}}
  22. {{ $ENABLE_TCC := .Env.ENABLE_TCC | default "true" | toBool -}}
  23. {{ $ENABLE_TRANSCRIPTIONS := .Env.ENABLE_TRANSCRIPTIONS | default "false" | toBool -}}
  24. {{ $RESOLUTION := .Env.RESOLUTION | default "720" -}}
  25. {{ $RESOLUTION_MIN := .Env.RESOLUTION_MIN | default "180" -}}
  26. {{ $RESOLUTION_WIDTH := .Env.RESOLUTION_WIDTH | default "1280" -}}
  27. {{ $RESOLUTION_WIDTH_MIN := .Env.RESOLUTION_WIDTH_MIN | default "320" -}}
  28. {{ $START_AUDIO_ONLY := .Env.START_AUDIO_ONLY | default "false" | toBool -}}
  29. {{ $START_AUDIO_MUTED := .Env.START_AUDIO_MUTED | default 10 -}}
  30. {{ $START_WITH_AUDIO_MUTED := .Env.START_WITH_AUDIO_MUTED | default "false" | toBool -}}
  31. {{ $START_SILENT := .Env.START_SILENT | default "false" | toBool -}}
  32. {{ $DISABLE_AUDIO_LEVELS := .Env.DISABLE_AUDIO_LEVELS | default "false" | toBool -}}
  33. {{ $ENABLE_NOISY_MIC_DETECTION := .Env.ENABLE_NOISY_MIC_DETECTION | default "true" | toBool -}}
  34. {{ $START_VIDEO_MUTED := .Env.START_VIDEO_MUTED | default 10 -}}
  35. {{ $START_WITH_VIDEO_MUTED := .Env.START_WITH_VIDEO_MUTED | default "false" | toBool -}}
  36. {{ $DESKTOP_SHARING_FRAMERATE_MIN := .Env.DESKTOP_SHARING_FRAMERATE_MIN | default 5 -}}
  37. {{ $DESKTOP_SHARING_FRAMERATE_MAX := .Env.DESKTOP_SHARING_FRAMERATE_MAX | default 5 -}}
  38. {{ $TESTING_OCTO_PROBABILITY := .Env.TESTING_OCTO_PROBABILITY | default "0" -}}
  39. {{ $TESTING_CAP_SCREENSHARE_BITRATE := .Env.TESTING_CAP_SCREENSHARE_BITRATE | default "1" -}}
  40. {{ $XMPP_DOMAIN := .Env.XMPP_DOMAIN | default "meet.jitsi" -}}
  41. {{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}}
  42. {{ $DISABLE_DEEP_LINKING := .Env.DISABLE_DEEP_LINKING | default "false" | toBool -}}
  43. {{ $VIDEOQUALITY_ENFORCE_PREFERRED_CODEC := .Env.VIDEOQUALITY_ENFORCE_PREFERRED_CODEC | default "false" | toBool -}}
  44. {{ $DISABLE_POLLS := .Env.DISABLE_POLLS | default "false" | toBool -}}
  45. {{ $DISABLE_REACTIONS := .Env.DISABLE_REACTIONS | default "false" | toBool -}}
  46. {{ $DISABLE_REMOTE_VIDEO_MENU := .Env.DISABLE_REMOTE_VIDEO_MENU | default "false" | toBool -}}
  47. {{ $DISABLE_PRIVATE_CHAT:= .Env.DISABLE_PRIVATE_CHAT | default "false" | toBool -}}
  48. {{ $DISABLE_KICKOUT := .Env.DISABLE_KICKOUT | default "false" | toBool -}}
  49. {{ $DISABLE_GRANT_MODERATOR := .Env.DISABLE_GRANT_MODERATOR | default "false" | toBool -}}
  50. {{ $ENABLE_E2EPING := .Env.ENABLE_E2EPING | default "false" | toBool -}}
  51. // Video configuration.
  52. //
  53. if (!config.hasOwnProperty('constraints')) config.constraints = {};
  54. if (!config.constraints.hasOwnProperty('video')) config.constraints.video = {};
  55. config.resolution = {{ $RESOLUTION }};
  56. config.constraints.video.height = { ideal: {{ $RESOLUTION }}, max: {{ $RESOLUTION }}, min: {{ $RESOLUTION_MIN }} };
  57. config.constraints.video.width = { ideal: {{ $RESOLUTION_WIDTH }}, max: {{ $RESOLUTION_WIDTH }}, min: {{ $RESOLUTION_WIDTH_MIN }}};
  58. config.disableSimulcast = {{ not $ENABLE_SIMULCAST }};
  59. config.startVideoMuted = {{ $START_VIDEO_MUTED }};
  60. config.startWithVideoMuted = {{ $START_WITH_VIDEO_MUTED }};
  61. {{ if .Env.START_BITRATE -}}
  62. config.startBitrate = '{{ .Env.START_BITRATE }}';
  63. {{ end -}}
  64. // ScreenShare Configuration.
  65. //
  66. config.desktopSharingFrameRate = { min: {{ $DESKTOP_SHARING_FRAMERATE_MIN }}, max: {{ $DESKTOP_SHARING_FRAMERATE_MAX }} };
  67. // Audio configuration.
  68. //
  69. config.enableNoAudioDetection = {{ $ENABLE_NO_AUDIO_DETECTION }};
  70. config.enableTalkWhileMuted = {{ $ENABLE_TALK_WHILE_MUTED }};
  71. config.disableAP = {{ not $ENABLE_AUDIO_PROCESSING }};
  72. if (!config.hasOwnProperty('audioQuality')) config.audioQuality = {};
  73. config.audioQuality.stereo = {{ $ENABLE_STEREO }};
  74. {{ if .Env.AUDIO_QUALITY_OPUS_BITRATE -}}
  75. config.audioQuality.opusMaxAverageBitrate = '{{ .Env.AUDIO_QUALITY_OPUS_BITRATE }}';
  76. {{ end -}}
  77. config.startAudioOnly = {{ $START_AUDIO_ONLY }};
  78. config.startAudioMuted = {{ $START_AUDIO_MUTED }};
  79. config.startWithAudioMuted = {{ $START_WITH_AUDIO_MUTED }};
  80. config.startSilent = {{ $START_SILENT }};
  81. config.enableOpusRed = {{ $ENABLE_OPUS_RED }};
  82. config.disableAudioLevels = {{ $DISABLE_AUDIO_LEVELS }};
  83. config.enableNoisyMicDetection = {{ $ENABLE_NOISY_MIC_DETECTION }};
  84. // Peer-to-Peer options.
  85. //
  86. if (!config.hasOwnProperty('p2p')) config.p2p = {};
  87. config.p2p.enabled = {{ $ENABLE_P2P }};
  88. // Breakout Rooms
  89. //
  90. config.hideAddRoomButton = {{ $ENABLE_BREAKOUT_ROOMS | not }};
  91. // Etherpad
  92. //
  93. {{ if .Env.ETHERPAD_PUBLIC_URL -}}
  94. config.etherpad_base = '{{ .Env.ETHERPAD_PUBLIC_URL }}';
  95. {{ else if .Env.ETHERPAD_URL_BASE -}}
  96. config.etherpad_base = '{{.Env.PUBLIC_URL}}/etherpad/p/';
  97. {{ end -}}
  98. // Recording.
  99. //
  100. {{ if $ENABLE_RECORDING -}}
  101. config.hiddenDomain = '{{ $XMPP_RECORDER_DOMAIN }}';
  102. // Whether to enable file recording or not
  103. config.fileRecordingsEnabled = true;
  104. // Whether to enable live streaming or not.
  105. config.liveStreamingEnabled = true;
  106. {{ if .Env.DROPBOX_APPKEY -}}
  107. // Enable the dropbox integration.
  108. if (!config.hasOwnProperty('dropbox')) config.dropbox = {};
  109. config.dropbox.appKey = '{{ .Env.DROPBOX_APPKEY }}';
  110. {{ if .Env.DROPBOX_REDIRECT_URI -}}
  111. // A URL to redirect the user to, after authenticating
  112. // by default uses:
  113. // 'https://jitsi-meet.example.com/static/oauth.html'
  114. config.dropbox.redirectURI = '{{ .Env.DROPBOX_REDIRECT_URI }}';
  115. {{ end -}}
  116. {{ end -}}
  117. {{ if $ENABLE_FILE_RECORDING_SERVICE -}}
  118. // When integrations like dropbox are enabled only that will be shown,
  119. // by enabling fileRecordingsServiceEnabled, we show both the integrations
  120. // and the generic recording service (its configuration and storage type
  121. // depends on jibri configuration)
  122. config.fileRecordingsServiceEnabled = true;
  123. {{ end -}}
  124. {{ if $ENABLE_FILE_RECORDING_SERVICE_SHARING -}}
  125. // Whether to show the possibility to share file recording with other people
  126. // (e.g. meeting participants), based on the actual implementation
  127. // on the backend.
  128. config.fileRecordingsServiceSharingEnabled = true;
  129. {{ end -}}
  130. {{ end -}}
  131. // Analytics.
  132. //
  133. if (!config.hasOwnProperty('analytics')) config.analytics = {};
  134. {{ if .Env.AMPLITUDE_ID -}}
  135. // The Amplitude APP Key:
  136. config.analytics.amplitudeAPPKey = '{{ .Env.AMPLITUDE_ID }}';
  137. {{ end -}}
  138. {{ if .Env.GOOGLE_ANALYTICS_ID -}}
  139. // The Google Analytics Tracking ID:
  140. config.analytics.googleAnalyticsTrackingId = '{{ .Env.GOOGLE_ANALYTICS_ID }}';
  141. {{ end -}}
  142. {{ if .Env.MATOMO_ENDPOINT -}}
  143. // Matomo endpoint:
  144. config.analytics.matomoEndpoint = '{{ .Env.MATOMO_ENDPOINT }}';
  145. {{ end -}}
  146. {{ if .Env.MATOMO_SITE_ID -}}
  147. // Matomo site ID:
  148. config.analytics.matomoSiteID = '{{ .Env.MATOMO_SITE_ID }}';
  149. {{ end -}}
  150. {{ if .Env.ANALYTICS_SCRIPT_URLS -}}
  151. // Array of script URLs to load as lib-jitsi-meet "analytics handlers".
  152. config.analytics.scriptURLs = [ '{{ join "','" (splitList "," .Env.ANALYTICS_SCRIPT_URLS) }}' ];
  153. {{ end -}}
  154. {{ if .Env.ANALYTICS_WHITELISTED_EVENTS -}}
  155. config.analytics.whiteListedEvents = [ '{{ join "','" (splitList "," .Env.ANALYTICS_WHITELISTED_EVENTS) }}' ];
  156. {{ end -}}
  157. {{ if .Env.CALLSTATS_CUSTOM_SCRIPT_URL -}}
  158. config.callStatsCustomScriptUrl = '{{ .Env.CALLSTATS_CUSTOM_SCRIPT_URL }}';
  159. {{ end -}}
  160. {{ if .Env.CALLSTATS_ID -}}
  161. // To enable sending statistics to callstats.io you must provide the
  162. // Application ID and Secret.
  163. config.callStatsID = '{{ .Env.CALLSTATS_ID }}';
  164. {{ end -}}
  165. {{ if .Env.CALLSTATS_ID -}}
  166. config.callStatsSecret = '{{ .Env.CALLSTATS_SECRET }}';
  167. {{ end -}}
  168. // Enables callstatsUsername to be reported as statsId and used
  169. // by callstats as repoted remote id.
  170. config.enableStatsID = {{ $ENABLE_STATS_ID }};
  171. // Dial in/out services.
  172. //
  173. {{ if .Env.CONFCODE_URL -}}
  174. config.dialInConfCodeUrl = '{{ .Env.CONFCODE_URL }}';
  175. {{ end -}}
  176. {{ if .Env.DIALIN_NUMBERS_URL -}}
  177. config.dialInNumbersUrl = '{{ .Env.DIALIN_NUMBERS_URL }}';
  178. {{ end -}}
  179. {{ if .Env.DIALOUT_AUTH_URL -}}
  180. config.dialOutAuthUrl = '{{ .Env.DIALOUT_AUTH_URL }}';
  181. {{ end -}}
  182. {{ if .Env.DIALOUT_CODES_URL -}}
  183. config.dialOutCodesUrl = '{{ .Env.DIALOUT_CODES_URL }}';
  184. {{ end -}}
  185. // Calendar service integration.
  186. //
  187. config.enableCalendarIntegration = {{ $ENABLE_CALENDAR }};
  188. {{ if .Env.GOOGLE_API_APP_CLIENT_ID -}}
  189. config.googleApiApplicationClientID = '{{ .Env.GOOGLE_API_APP_CLIENT_ID }}';
  190. {{ end -}}
  191. {{ if .Env.MICROSOFT_API_APP_CLIENT_ID -}}
  192. config.microsoftApiApplicationClientID = '{{ .Env.MICROSOFT_API_APP_CLIENT_ID }}';
  193. {{ end -}}
  194. // Invitation service.
  195. //
  196. {{ if .Env.INVITE_SERVICE_URL -}}
  197. config.inviteServiceUrl = '{{ .Env.INVITE_SERVICE_URL }}';
  198. {{ end -}}
  199. {{ if .Env.PEOPLE_SEARCH_URL -}}
  200. config.peopleSearchUrl = '{{ .Env.PEOPLE_SEARCH_URL }}';
  201. config.peopleSearchQueryTypes = ['user','conferenceRooms'];
  202. {{ end -}}
  203. // Miscellaneous.
  204. //
  205. // Prejoin page.
  206. config.prejoinPageEnabled = {{ $ENABLE_PREJOIN_PAGE }};
  207. // Welcome page.
  208. config.enableWelcomePage = {{ $ENABLE_WELCOME_PAGE }};
  209. // Close page.
  210. config.enableClosePage = {{ $ENABLE_CLOSE_PAGE }};
  211. // Default language.
  212. {{ if .Env.DEFAULT_LANGUAGE -}}
  213. config.defaultLanguage = '{{ .Env.DEFAULT_LANGUAGE }}';
  214. {{ end -}}
  215. // Require users to always specify a display name.
  216. config.requireDisplayName = {{ $ENABLE_REQUIRE_DISPLAY_NAME }};
  217. // Chrome extension banner.
  218. {{ if .Env.CHROME_EXTENSION_BANNER_JSON -}}
  219. config.chromeExtensionBanner = {{ .Env.CHROME_EXTENSION_BANNER_JSON }};
  220. {{ end -}}
  221. // Advanced.
  222. //
  223. // Lipsync hack in jicofo, may not be safe.
  224. config.enableLipSync = {{ $ENABLE_LIPSYNC }};
  225. config.enableRemb = {{ $ENABLE_REMB }};
  226. config.enableTcc = {{ $ENABLE_TCC }};
  227. // Enable IPv6 support.
  228. config.useIPv6 = {{ $ENABLE_IPV6 }};
  229. // Transcriptions (subtitles and buttons can be configured in interface_config)
  230. config.transcribingEnabled = {{ $ENABLE_TRANSCRIPTIONS }};
  231. {{ if .Env.DYNAMIC_BRANDING_URL -}}
  232. // External API url used to receive branding specific information.
  233. config.dynamicBrandingUrl = '{{ .Env.DYNAMIC_BRANDING_URL }}';
  234. {{ end -}}
  235. {{ if .Env.TOKEN_AUTH_URL -}}
  236. // Authenticate using external service or just focus external auth window if there is one already.
  237. config.tokenAuthUrl = '{{ .Env.TOKEN_AUTH_URL }}';
  238. {{ end -}}
  239. // Deployment information.
  240. //
  241. if (!config.hasOwnProperty('deploymentInfo')) config.deploymentInfo = {};
  242. {{ if .Env.DEPLOYMENTINFO_ENVIRONMENT -}}
  243. config.deploymentInfo.environment = '{{ .Env.DEPLOYMENTINFO_ENVIRONMENT }}';
  244. {{ end -}}
  245. {{ if .Env.DEPLOYMENTINFO_SHARD -}}
  246. config.deploymentInfo.shard = '{{ .Env.DEPLOYMENTINFO_SHARD }}';
  247. {{ end -}}
  248. {{ if .Env.DEPLOYMENTINFO_ENVIRONMENT_TYPE -}}
  249. config.deploymentInfo.envType = '{{ .Env.DEPLOYMENTINFO_ENVIRONMENT_TYPE }}';
  250. {{ end -}}
  251. {{ if .Env.DEPLOYMENTINFO_REGION -}}
  252. config.deploymentInfo.region = '{{ .Env.DEPLOYMENTINFO_REGION }}';
  253. {{ end -}}
  254. {{ if $DEPLOYMENTINFO_USERREGION -}}
  255. config.deploymentInfo.userRegion = '{{ $DEPLOYMENTINFO_USERREGION }}';
  256. {{ end -}}
  257. // Testing
  258. //
  259. if (!config.hasOwnProperty('testing')) config.testing = {};
  260. if (!config.testing.hasOwnProperty('octo')) config.testing.octo = {};
  261. config.testing.capScreenshareBitrate = {{ $TESTING_CAP_SCREENSHARE_BITRATE }};
  262. config.testing.octo.probability = {{ $TESTING_OCTO_PROBABILITY }};
  263. // Deep Linking
  264. config.disableDeepLinking = {{ $DISABLE_DEEP_LINKING }};
  265. // P2P preferred codec
  266. {{ if .Env.P2P_PREFERRED_CODEC -}}
  267. config.p2p.preferredCodec = '{{ .Env.P2P_PREFERRED_CODEC }}';
  268. {{ end -}}
  269. // enable preffered video Codec
  270. if (!config.hasOwnProperty('videoQuality')) config.videoQuality = {};
  271. {{ if .Env.VIDEOQUALITY_PREFERRED_CODEC -}}
  272. config.videoQuality.preferredCodec = '{{ .Env.VIDEOQUALITY_PREFERRED_CODEC }}';
  273. {{ end -}}
  274. config.videoQuality.enforcePreferredCodec = {{ $VIDEOQUALITY_ENFORCE_PREFERRED_CODEC }};
  275. if (!config.videoQuality.hasOwnProperty('maxBitratesVideo')) config.videoQuality.maxBitratesVideo = {};
  276. {{ if and .Env.VIDEOQUALITY_BITRATE_H264_LOW .Env.VIDEOQUALITY_BITRATE_H264_STANDARD .Env.VIDEOQUALITY_BITRATE_H264_HIGH -}}
  277. config.videoQuality.maxBitratesVideo.H264 = { low: {{ .Env.VIDEOQUALITY_BITRATE_H264_LOW }}, standard: {{ .Env.VIDEOQUALITY_BITRATE_H264_STANDARD }}, high: {{ .Env.VIDEOQUALITY_BITRATE_H264_HIGH }} };
  278. {{ end -}}
  279. {{ if and .Env.VIDEOQUALITY_BITRATE_VP8_LOW .Env.VIDEOQUALITY_BITRATE_VP8_STANDARD .Env.VIDEOQUALITY_BITRATE_VP8_HIGH -}}
  280. config.videoQuality.maxBitratesVideo.VP8 = { low: {{ .Env.VIDEOQUALITY_BITRATE_VP8_LOW }}, standard: {{ .Env.VIDEOQUALITY_BITRATE_VP8_STANDARD }}, high: {{ .Env.VIDEOQUALITY_BITRATE_VP8_HIGH }} };
  281. {{ end -}}
  282. {{ if and .Env.VIDEOQUALITY_BITRATE_VP9_LOW .Env.VIDEOQUALITY_BITRATE_VP9_STANDARD .Env.VIDEOQUALITY_BITRATE_VP9_HIGH -}}
  283. config.videoQuality.maxBitratesVideo.VP9 = { low: {{ .Env.VIDEOQUALITY_BITRATE_VP9_LOW }}, standard: {{ .Env.VIDEOQUALITY_BITRATE_VP9_STANDARD }}, high: {{ .Env.VIDEOQUALITY_BITRATE_VP9_HIGH }} };
  284. {{ end -}}
  285. // Reactions
  286. config.disableReactions = {{ $DISABLE_REACTIONS }};
  287. // Polls
  288. config.disablePolls = {{ $DISABLE_POLLS }};
  289. // Configure toolbar buttons
  290. {{ if .Env.TOOLBAR_BUTTONS -}}
  291. config.toolbarButtons = [ '{{ join "','" (splitList "," .Env.TOOLBAR_BUTTONS) }}' ];
  292. {{ end -}}
  293. // Hides the buttons at pre-join screen
  294. {{ if .Env.HIDE_PREMEETING_BUTTONS -}}
  295. config.hiddenPremeetingButtons = [ '{{ join "','" (splitList "," .Env.HIDE_PREMEETING_BUTTONS) }}' ];
  296. {{ end -}}
  297. // Configure remote participant video menu
  298. if (!config.hasOwnProperty('remoteVideoMenu')) config.remoteVideoMenu = {};
  299. config.remoteVideoMenu.disabled = {{ $DISABLE_REMOTE_VIDEO_MENU }};
  300. config.remoteVideoMenu.disableKick = {{ $DISABLE_KICKOUT }};
  301. config.remoteVideoMenu.disableGrantModerator = {{ $DISABLE_GRANT_MODERATOR }};
  302. config.remoteVideoMenu.disablePrivateChat = {{ $DISABLE_PRIVATE_CHAT }};
  303. // Configure e2eping
  304. if (!config.hasOwnProperty('e2eping')) config.e2eping = {};
  305. config.e2eping.enabled = {{ $ENABLE_E2EPING }};
  306. {{ if .Env.E2EPING_NUM_REQUESTS -}}
  307. config.e2eping.numRequests = {{ .Env.E2EPING_NUM_REQUESTS }};
  308. {{ end -}}
  309. {{ if .Env.E2EPING_MAX_CONFERENCE_SIZE -}}
  310. config.e2eping.maxConferenceSize = {{ .Env.E2EPING_MAX_CONFERENCE_SIZE }};
  311. {{ end -}}
  312. {{ if .Env.E2EPING_MAX_MESSAGE_PER_SECOND -}}
  313. config.e2eping.maxMessagePerSecond = {{ .Env.E2EPING_MAX_MESSAGE_PER_SECOND }};
  314. {{ end }}