Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

489 lines
16 KiB

  1. /* eslint-disable no-unused-vars, no-var */
  2. var config = {
  3. // Configuration
  4. //
  5. // Alternative location for the configuration.
  6. // configLocation: './config.json',
  7. // Custom function which given the URL path should return a room name.
  8. // getroomnode: function (path) { return 'someprefixpossiblybasedonpath'; },
  9. // Connection
  10. //
  11. hosts: {
  12. // XMPP domain.
  13. domain: '{{ matrix_jitsi_xmpp_domain }}',
  14. {% if matrix_jitsi_enable_auth %}
  15. {% if matrix_jitsi_enable_guests %}
  16. // When using authentication, domain for guest users.
  17. anonymousdomain: '{{ matrix_jitsi_xmpp_guest_domain }}',
  18. {% endif %}
  19. // Domain for authenticated users. Defaults to <domain>.
  20. authdomain: '{{ matrix_jitsi_xmpp_domain }}',
  21. {% endif %}
  22. // Jirecon recording component domain.
  23. // jirecon: 'jirecon.{{ matrix_jitsi_xmpp_domain }}',
  24. // Call control component (Jigasi).
  25. // call_control: 'callcontrol.{{ matrix_jitsi_xmpp_domain }}',
  26. // Focus component domain. Defaults to focus.<domain>.
  27. // focus: 'focus.{{ matrix_jitsi_xmpp_domain }}',
  28. // XMPP MUC domain. FIXME: use XEP-0030 to discover it.
  29. muc: {{ matrix_jitsi_xmpp_muc_domain|to_json }},
  30. },
  31. // BOSH URL. FIXME: use XEP-0156 to discover it.
  32. bosh: '/http-bind',
  33. // The name of client node advertised in XEP-0115 'c' stanza
  34. clientNode: 'http://jitsi.org/jitsimeet',
  35. // The real JID of focus participant - can be overridden here
  36. focusUserJid: {{ matrix_jitsi_jicofo_auth_user|to_json }} + '@' + {{ matrix_jitsi_xmpp_auth_domain|to_json }},
  37. // Testing / experimental features.
  38. //
  39. testing: {
  40. // Enables experimental simulcast support on Firefox.
  41. enableFirefoxSimulcast: false,
  42. // P2P test mode disables automatic switching to P2P when there are 2
  43. // participants in the conference.
  44. p2pTestMode: false
  45. // Enables the test specific features consumed by jitsi-meet-torture
  46. // testMode: false
  47. },
  48. // Disables ICE/UDP by filtering out local and remote UDP candidates in
  49. // signalling.
  50. // webrtcIceUdpDisable: false,
  51. // Disables ICE/TCP by filtering out local and remote TCP candidates in
  52. // signalling.
  53. // webrtcIceTcpDisable: false,
  54. // Media
  55. //
  56. // Audio
  57. // Disable measuring of audio levels.
  58. // disableAudioLevels: false,
  59. // Start the conference in audio only mode (no video is being received nor
  60. // sent).
  61. // startAudioOnly: false,
  62. // Every participant after the Nth will start audio muted.
  63. // startAudioMuted: 10,
  64. // Start calls with audio muted. Unlike the option above, this one is only
  65. // applied locally. FIXME: having these 2 options is confusing.
  66. // startWithAudioMuted: false,
  67. // Enabling it (with #params) will disable local audio output of remote
  68. // participants and to enable it back a reload is needed.
  69. // startSilent: false
  70. // Video
  71. // Sets the preferred resolution (height) for local video. Defaults to 720.
  72. // resolution: 720,
  73. // w3c spec-compliant video constraints to use for video capture. Currently
  74. // used by browsers that return true from lib-jitsi-meet's
  75. // util#browser#usesNewGumFlow. The constraints are independency from
  76. // this config's resolution value. Defaults to requesting an ideal aspect
  77. // ratio of 16:9 with an ideal resolution of 720.
  78. // constraints: {
  79. // video: {
  80. // aspectRatio: 16 / 9,
  81. // height: {
  82. // ideal: 720,
  83. // max: 720,
  84. // min: 240
  85. // }
  86. // }
  87. // },
  88. // Enable / disable simulcast support.
  89. // disableSimulcast: false,
  90. // Enable / disable layer suspension. If enabled, endpoints whose HD
  91. // layers are not in use will be suspended (no longer sent) until they
  92. // are requested again.
  93. // enableLayerSuspension: false,
  94. // Suspend sending video if bandwidth estimation is too low. This may cause
  95. // problems with audio playback. Disabled until these are fixed.
  96. disableSuspendVideo: true,
  97. // Every participant after the Nth will start video muted.
  98. // startVideoMuted: 10,
  99. // Start calls with video muted. Unlike the option above, this one is only
  100. // applied locally. FIXME: having these 2 options is confusing.
  101. // startWithVideoMuted: false,
  102. // If set to true, prefer to use the H.264 video codec (if supported).
  103. // Note that it's not recommended to do this because simulcast is not
  104. // supported when using H.264. For 1-to-1 calls this setting is enabled by
  105. // default and can be toggled in the p2p section.
  106. // preferH264: true,
  107. // If set to true, disable H.264 video codec by stripping it out of the
  108. // SDP.
  109. // disableH264: false,
  110. // Desktop sharing
  111. // The ID of the jidesha extension for Chrome.
  112. desktopSharingChromeExtId: null,
  113. // Whether desktop sharing should be disabled on Chrome.
  114. // desktopSharingChromeDisabled: false,
  115. // The media sources to use when using screen sharing with the Chrome
  116. // extension.
  117. desktopSharingChromeSources: [ 'screen', 'window', 'tab' ],
  118. // Required version of Chrome extension
  119. desktopSharingChromeMinExtVersion: '0.1',
  120. // Whether desktop sharing should be disabled on Firefox.
  121. // desktopSharingFirefoxDisabled: false,
  122. // Optional desktop sharing frame rate options. Default value: min:5, max:5.
  123. // desktopSharingFrameRate: {
  124. // min: 5,
  125. // max: 5
  126. // },
  127. // Try to start calls with screen-sharing instead of camera video.
  128. // startScreenSharing: false,
  129. // Recording
  130. hiddenDomain: {{ matrix_jitsi_recorder_domain|to_json }},
  131. // Whether to enable file recording or not.
  132. fileRecordingsEnabled: {{ matrix_jitsi_enable_recording|to_json }},
  133. // Enable the dropbox integration.
  134. // dropbox: {
  135. // appKey: '<APP_KEY>' // Specify your app key here.
  136. // // A URL to redirect the user to, after authenticating
  137. // // by default uses:
  138. // // 'https://{{ matrix_jitsi_xmpp_domain }}/static/oauth.html'
  139. // redirectURI:
  140. // 'https://{{ matrix_jitsi_xmpp_domain }}/subfolder/static/oauth.html'
  141. // },
  142. // When integrations like dropbox are enabled only that will be shown,
  143. // by enabling fileRecordingsServiceEnabled, we show both the integrations
  144. // and the generic recording service (its configuration and storage type
  145. // depends on jibri configuration)
  146. // fileRecordingsServiceEnabled: false,
  147. // Whether to show the possibility to share file recording with other people
  148. // (e.g. meeting participants), based on the actual implementation
  149. // on the backend.
  150. // fileRecordingsServiceSharingEnabled: false,
  151. // Whether to enable live streaming or not.
  152. liveStreamingEnabled: {{ matrix_jitsi_enable_recording|to_json }},
  153. // Transcription (in interface_config,
  154. // subtitles and buttons can be configured)
  155. transcribingEnabled: {{ matrix_jitsi_enable_transcriptions|to_json }},
  156. // Misc
  157. // Default value for the channel "last N" attribute. -1 for unlimited.
  158. channelLastN: -1,
  159. // Disables or enables RTX (RFC 4588) (defaults to false).
  160. // disableRtx: false,
  161. // Disables or enables TCC (the default is in Jicofo and set to true)
  162. // (draft-holmer-rmcat-transport-wide-cc-extensions-01). This setting
  163. // affects congestion control, it practically enables send-side bandwidth
  164. // estimations.
  165. // enableTcc: true,
  166. // Disables or enables REMB (the default is in Jicofo and set to false)
  167. // (draft-alvestrand-rmcat-remb-03). This setting affects congestion
  168. // control, it practically enables recv-side bandwidth estimations. When
  169. // both TCC and REMB are enabled, TCC takes precedence. When both are
  170. // disabled, then bandwidth estimations are disabled.
  171. // enableRemb: false,
  172. // Defines the minimum number of participants to start a call (the default
  173. // is set in Jicofo and set to 2).
  174. // minParticipants: 2,
  175. // Use XEP-0215 to fetch STUN and TURN servers.
  176. // useStunTurn: true,
  177. // Enable IPv6 support.
  178. // useIPv6: true,
  179. // Enables / disables a data communication channel with the Videobridge.
  180. // Values can be 'datachannel', 'websocket', true (treat it as
  181. // 'datachannel'), undefined (treat it as 'datachannel') and false (don't
  182. // open any channel).
  183. // openBridgeChannel: true,
  184. // UI
  185. //
  186. // Use display name as XMPP nickname.
  187. // useNicks: false,
  188. // Require users to always specify a display name.
  189. // requireDisplayName: true,
  190. // Whether to use a welcome page or not. In case it's false a random room
  191. // will be joined when no room is specified.
  192. enableWelcomePage: true,
  193. // Enabling the close page will ignore the welcome page redirection when
  194. // a call is hangup.
  195. // enableClosePage: false,
  196. // Disable hiding of remote thumbnails when in a 1-on-1 conference call.
  197. // disable1On1Mode: false,
  198. // Default language for the user interface.
  199. defaultLanguage: {{ matrix_jitsi_web_config_defaultLanguage|to_json }},
  200. // If true all users without a token will be considered guests and all users
  201. // with token will be considered non-guests. Only guests will be allowed to
  202. // edit their profile.
  203. enableUserRolesBasedOnToken: false,
  204. // Whether or not some features are checked based on token.
  205. // enableFeaturesBasedOnToken: false,
  206. // Enable lock room for all moderators, even when userRolesBasedOnToken is enabled and participants are guests.
  207. // lockRoomGuestEnabled: false,
  208. // When enabled the password used for locking a room is restricted to up to the number of digits specified
  209. // roomPasswordNumberOfDigits: 10,
  210. // default: roomPasswordNumberOfDigits: false,
  211. // Message to show the users. Example: 'The service will be down for
  212. // maintenance at 01:00 AM GMT,
  213. // noticeMessage: '',
  214. // Enables calendar integration, depends on googleApiApplicationClientID
  215. // and microsoftApiApplicationClientID
  216. // enableCalendarIntegration: false,
  217. // Stats
  218. //
  219. // Whether to enable stats collection or not in the TraceablePeerConnection.
  220. // This can be useful for debugging purposes (post-processing/analysis of
  221. // the webrtc stats) as it is done in the jitsi-meet-torture bandwidth
  222. // estimation tests.
  223. // gatherStats: false,
  224. // To enable sending statistics to callstats.io you must provide the
  225. // Application ID and Secret.
  226. // callStatsID: '',
  227. // callStatsSecret: '',
  228. // enables callstatsUsername to be reported as statsId and used
  229. // by callstats as repoted remote id
  230. // enableStatsID: false
  231. // enables sending participants display name to callstats
  232. // enableDisplayNameInStats: false
  233. // Privacy
  234. //
  235. // If third party requests are disabled, no other server will be contacted.
  236. // This means avatars will be locally generated and callstats integration
  237. // will not function.
  238. // disableThirdPartyRequests: false,
  239. // Peer-To-Peer mode: used (if enabled) when there are just 2 participants.
  240. //
  241. p2p: {
  242. // Enables peer to peer mode. When enabled the system will try to
  243. // establish a direct connection when there are exactly 2 participants
  244. // in the room. If that succeeds the conference will stop sending data
  245. // through the JVB and use the peer to peer connection instead. When a
  246. // 3rd participant joins the conference will be moved back to the JVB
  247. // connection.
  248. enabled: true,
  249. // Use XEP-0215 to fetch STUN and TURN servers.
  250. // useStunTurn: true,
  251. // The STUN servers that will be used in the peer to peer connections
  252. {% if matrix_jitsi_web_stun_servers|length > 0 %}
  253. stunServers: [
  254. {% for url in matrix_jitsi_web_stun_servers %}
  255. { urls: {{ url|to_json }} }{% if not loop.last %},{% endif %}
  256. {% endfor %}
  257. ],
  258. {% endif %}
  259. // Sets the ICE transport policy for the p2p connection. At the time
  260. // of this writing the list of possible values are 'all' and 'relay',
  261. // but that is subject to change in the future. The enum is defined in
  262. // the WebRTC standard:
  263. // https://www.w3.org/TR/webrtc/#rtcicetransportpolicy-enum.
  264. // If not set, the effective value is 'all'.
  265. // iceTransportPolicy: 'all',
  266. // If set to true, it will prefer to use H.264 for P2P calls (if H.264
  267. // is supported).
  268. preferH264: true
  269. // If set to true, disable H.264 video codec by stripping it out of the
  270. // SDP.
  271. // disableH264: false,
  272. // How long we're going to wait, before going back to P2P after the 3rd
  273. // participant has left the conference (to filter out page reload).
  274. // backToP2PDelay: 5
  275. },
  276. analytics: {
  277. // The Google Analytics Tracking ID:
  278. // googleAnalyticsTrackingId: 'your-tracking-id-UA-123456-1'
  279. // The Amplitude APP Key:
  280. // amplitudeAPPKey: '<APP_KEY>'
  281. // Array of script URLs to load as lib-jitsi-meet "analytics handlers".
  282. // scriptURLs: [
  283. // "libs/analytics-ga.min.js", // google-analytics
  284. // "https://example.com/my-custom-analytics.js"
  285. // ],
  286. },
  287. // Information about the jitsi-meet instance we are connecting to, including
  288. // the user region as seen by the server.
  289. deploymentInfo: {
  290. // shard: "shard1",
  291. // region: "europe",
  292. // userRegion: "asia"
  293. }
  294. // Local Recording
  295. //
  296. // localRecording: {
  297. // Enables local recording.
  298. // Additionally, 'localrecording' (all lowercase) needs to be added to
  299. // TOOLBAR_BUTTONS in interface_config.js for the Local Recording
  300. // button to show up on the toolbar.
  301. //
  302. // enabled: true,
  303. //
  304. // The recording format, can be one of 'ogg', 'flac' or 'wav'.
  305. // format: 'flac'
  306. //
  307. // }
  308. // Options related to end-to-end (participant to participant) ping.
  309. // e2eping: {
  310. // // The interval in milliseconds at which pings will be sent.
  311. // // Defaults to 10000, set to <= 0 to disable.
  312. // pingInterval: 10000,
  313. //
  314. // // The interval in milliseconds at which analytics events
  315. // // with the measured RTT will be sent. Defaults to 60000, set
  316. // // to <= 0 to disable.
  317. // analyticsInterval: 60000,
  318. // }
  319. // If set, will attempt to use the provided video input device label when
  320. // triggering a screenshare, instead of proceeding through the normal flow
  321. // for obtaining a desktop stream.
  322. // NOTE: This option is experimental and is currently intended for internal
  323. // use only.
  324. // _desktopSharingSourceDevice: 'sample-id-or-label'
  325. // If true, any checks to handoff to another application will be prevented
  326. // and instead the app will continue to display in the current browser.
  327. // disableDeepLinking: false
  328. // A property to disable the right click context menu for localVideo
  329. // the menu has option to flip the locally seen video for local presentations
  330. // disableLocalVideoFlip: false
  331. // List of undocumented settings used in jitsi-meet
  332. /**
  333. _immediateReloadThreshold
  334. autoRecord
  335. autoRecordToken
  336. debug
  337. debugAudioLevels
  338. deploymentInfo
  339. dialInConfCodeUrl
  340. dialInNumbersUrl
  341. dialOutAuthUrl
  342. dialOutCodesUrl
  343. disableRemoteControl
  344. displayJids
  345. etherpad_base
  346. externalConnectUrl
  347. firefox_fake_device
  348. googleApiApplicationClientID
  349. iAmRecorder
  350. iAmSipGateway
  351. microsoftApiApplicationClientID
  352. peopleSearchQueryTypes
  353. peopleSearchUrl
  354. requireDisplayName
  355. tokenAuthUrl
  356. */
  357. // List of undocumented settings used in lib-jitsi-meet
  358. /**
  359. _peerConnStatusOutOfLastNTimeout
  360. _peerConnStatusRtcMuteTimeout
  361. abTesting
  362. avgRtpStatsN
  363. callStatsConfIDNamespace
  364. callStatsCustomScriptUrl
  365. desktopSharingSources
  366. disableAEC
  367. disableAGC
  368. disableAP
  369. disableHPF
  370. disableNS
  371. enableLipSync
  372. enableTalkWhileMuted
  373. forceJVB121Ratio
  374. hiddenDomain
  375. ignoreStartMuted
  376. nick
  377. startBitrate
  378. */
  379. };
  380. /* eslint-enable no-unused-vars, no-var */