Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 

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