jitsi-meet.cfg.lua 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. {{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool -}}
  2. {{ $ENABLE_VISITORS := .Env.ENABLE_VISITORS | default "0" | toBool -}}
  3. {{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" -}}
  4. {{ $PROSODY_AUTH_TYPE := .Env.PROSODY_AUTH_TYPE | default $AUTH_TYPE -}}
  5. {{ $ENABLE_GUEST_DOMAIN := and $ENABLE_AUTH (.Env.ENABLE_GUESTS | default "0" | toBool) -}}
  6. {{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool -}}
  7. {{ $JIBRI_XMPP_USER := .Env.JIBRI_XMPP_USER | default "jibri" -}}
  8. {{ $JIGASI_XMPP_USER := .Env.JIGASI_XMPP_USER | default "jigasi" -}}
  9. {{ $JVB_AUTH_USER := .Env.JVB_AUTH_USER | default "jvb" -}}
  10. {{ $JWT_ASAP_KEYSERVER := .Env.JWT_ASAP_KEYSERVER | default "" -}}
  11. {{ $JWT_ALLOW_EMPTY := .Env.JWT_ALLOW_EMPTY | default "0" | toBool -}}
  12. {{ $JWT_AUTH_TYPE := .Env.JWT_AUTH_TYPE | default "token" -}}
  13. {{ $JWT_ENABLE_DOMAIN_VERIFICATION := .Env.JWT_ENABLE_DOMAIN_VERIFICATION | default "false" | toBool -}}
  14. {{ $MATRIX_UVS_ISSUER := .Env.MATRIX_UVS_ISSUER | default "issuer" -}}
  15. {{ $MATRIX_UVS_SYNC_POWER_LEVELS := .Env.MATRIX_UVS_SYNC_POWER_LEVELS | default "0" | toBool -}}
  16. {{ $JWT_TOKEN_AUTH_MODULE := .Env.JWT_TOKEN_AUTH_MODULE | default "token_verification" -}}
  17. {{ $ENABLE_LOBBY := .Env.ENABLE_LOBBY | default "true" | toBool -}}
  18. {{ $ENABLE_AV_MODERATION := .Env.ENABLE_AV_MODERATION | default "true" | toBool -}}
  19. {{ $ENABLE_BREAKOUT_ROOMS := .Env.ENABLE_BREAKOUT_ROOMS | default "true" | toBool -}}
  20. {{ $ENABLE_END_CONFERENCE := .Env.ENABLE_END_CONFERENCE | default "true" | toBool -}}
  21. {{ $ENABLE_XMPP_WEBSOCKET := .Env.ENABLE_XMPP_WEBSOCKET | default "1" | toBool -}}
  22. {{ $ENABLE_JAAS_COMPONENTS := .Env.ENABLE_JAAS_COMPONENTS | default "0" | toBool -}}
  23. {{ $ENABLE_RATE_LIMITS := .Env.PROSODY_ENABLE_RATE_LIMITS | default "0" | toBool -}}
  24. {{ $PUBLIC_URL := .Env.PUBLIC_URL | default "https://localhost:8443" -}}
  25. {{ $PUBLIC_URL_DOMAIN := $PUBLIC_URL | trimPrefix "https://" | trimSuffix "/" -}}
  26. {{ $TURN_HOST := .Env.TURN_HOST | default "" -}}
  27. {{ $TURN_HOSTS := splitList "," $TURN_HOST -}}
  28. {{ $TURN_PORT := .Env.TURN_PORT | default "443" -}}
  29. {{ $TURN_TRANSPORT := .Env.TURN_TRANSPORT | default "tcp" -}}
  30. {{ $TURN_TRANSPORTS := splitList "," $TURN_TRANSPORT -}}
  31. {{ $TURNS_HOST := .Env.TURNS_HOST | default "" -}}
  32. {{ $TURNS_HOSTS := splitList "," $TURNS_HOST -}}
  33. {{ $TURNS_PORT := .Env.TURNS_PORT | default "443" -}}
  34. {{ $XMPP_AUTH_DOMAIN := .Env.XMPP_AUTH_DOMAIN | default "auth.meet.jitsi" -}}
  35. {{ $XMPP_DOMAIN := .Env.XMPP_DOMAIN | default "meet.jitsi" -}}
  36. {{ $XMPP_GUEST_DOMAIN := .Env.XMPP_GUEST_DOMAIN | default "guest.meet.jitsi" -}}
  37. {{ $XMPP_INTERNAL_MUC_DOMAIN := .Env.XMPP_INTERNAL_MUC_DOMAIN | default "internal-muc.meet.jitsi" -}}
  38. {{ $XMPP_MUC_DOMAIN := .Env.XMPP_MUC_DOMAIN | default "muc.meet.jitsi" -}}
  39. {{ $XMPP_MUC_DOMAIN_PREFIX := (split "." $XMPP_MUC_DOMAIN)._0 -}}
  40. {{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}}
  41. {{ $JIBRI_RECORDER_USER := .Env.JIBRI_RECORDER_USER | default "recorder" -}}
  42. {{ $JIGASI_TRANSCRIBER_USER := .Env.JIGASI_TRANSCRIBER_USER | default "transcriber" -}}
  43. {{ $DISABLE_POLLS := .Env.DISABLE_POLLS | default "false" | toBool -}}
  44. {{ $ENABLE_SUBDOMAINS := .Env.ENABLE_SUBDOMAINS | default "true" | toBool -}}
  45. {{ $PROSODY_RESERVATION_ENABLED := .Env.PROSODY_RESERVATION_ENABLED | default "false" | toBool -}}
  46. {{ $PROSODY_RESERVATION_REST_BASE_URL := .Env.PROSODY_RESERVATION_REST_BASE_URL | default "" -}}
  47. {{ $RATE_LIMIT_LOGIN_RATE := .Env.PROSODY_RATE_LIMIT_LOGIN_RATE | default "3" -}}
  48. {{ $RATE_LIMIT_SESSION_RATE := .Env.PROSODY_RATE_LIMIT_SESSION_RATE | default "200" -}}
  49. {{ $RATE_LIMIT_TIMEOUT := .Env.PROSODY_RATE_LIMIT_TIMEOUT | default "60" -}}
  50. {{ $RATE_LIMIT_ALLOW_RANGES := .Env.PROSODY_RATE_LIMIT_ALLOW_RANGES | default "10.0.0.0/8" -}}
  51. {{ $RATE_LIMIT_CACHE_SIZE := .Env.PROSODY_RATE_LIMIT_CACHE_SIZE | default "10000" -}}
  52. {{ $ENV := .Env -}}
  53. admins = {
  54. {{ if .Env.JIGASI_XMPP_PASSWORD }}
  55. "{{ $JIGASI_XMPP_USER }}@{{ $XMPP_AUTH_DOMAIN }}",
  56. {{ end }}
  57. {{ if .Env.JIBRI_XMPP_PASSWORD }}
  58. "{{ $JIBRI_XMPP_USER }}@{{ $XMPP_AUTH_DOMAIN }}",
  59. {{ end }}
  60. "focus@{{ $XMPP_AUTH_DOMAIN }}",
  61. "{{ $JVB_AUTH_USER }}@{{ $XMPP_AUTH_DOMAIN }}"
  62. }
  63. unlimited_jids = {
  64. "focus@{{ $XMPP_AUTH_DOMAIN }}",
  65. "{{ $JVB_AUTH_USER }}@{{ $XMPP_AUTH_DOMAIN }}"
  66. }
  67. plugin_paths = { "/prosody-plugins/", "/prosody-plugins-custom" }
  68. muc_mapper_domain_base = "{{ $XMPP_DOMAIN }}";
  69. muc_mapper_domain_prefix = "{{ $XMPP_MUC_DOMAIN_PREFIX }}";
  70. http_default_host = "{{ $XMPP_DOMAIN }}"
  71. {{ if .Env.TURN_CREDENTIALS -}}
  72. external_service_secret = "{{.Env.TURN_CREDENTIALS}}";
  73. {{- end }}
  74. {{ if or .Env.TURN_HOST .Env.TURNS_HOST -}}
  75. external_services = {
  76. {{ if $TURN_HOST -}}
  77. {{- range $idx1, $host := $TURN_HOSTS -}}
  78. {{- range $idx2, $transport := $TURN_TRANSPORTS -}}
  79. {{- if or $idx1 $idx2 -}},{{- end }}
  80. { type = "turn", host = "{{ $host }}", port = {{ $TURN_PORT }}, transport = "{{ $transport }}", secret = true, ttl = 86400, algorithm = "turn" }
  81. {{- end -}}
  82. {{- end -}}
  83. {{- end -}}
  84. {{- if $TURNS_HOST -}}
  85. {{- range $idx, $host := $TURNS_HOSTS -}}
  86. {{- if or $TURN_HOST $idx -}},{{- end }}
  87. { type = "turns", host = "{{ $host }}", port = {{ $TURNS_PORT }}, transport = "tcp", secret = true, ttl = 86400, algorithm = "turn" }
  88. {{- end }}
  89. {{- end }}
  90. };
  91. {{- end }}
  92. {{ if and $ENABLE_AUTH (or (eq $PROSODY_AUTH_TYPE "jwt") (eq $PROSODY_AUTH_TYPE "hybrid_matrix_token")) .Env.JWT_ACCEPTED_ISSUERS }}
  93. asap_accepted_issuers = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_ISSUERS) }}" }
  94. {{ end }}
  95. {{ if and $ENABLE_AUTH (or (eq $PROSODY_AUTH_TYPE "jwt") (eq $PROSODY_AUTH_TYPE "hybrid_matrix_token")) .Env.JWT_ACCEPTED_AUDIENCES }}
  96. asap_accepted_audiences = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_AUDIENCES) }}" }
  97. {{ end }}
  98. consider_bosh_secure = true;
  99. consider_websocket_secure = true;
  100. {{ if $ENABLE_JAAS_COMPONENTS }}
  101. VirtualHost "jigasi.meet.jitsi"
  102. modules_enabled = {
  103. "ping";
  104. "bosh";
  105. "muc_password_check";
  106. }
  107. authentication = "token"
  108. app_id = "jitsi";
  109. asap_key_server = "https://jaas-public-keys.jitsi.net/jitsi-components/prod-8x8"
  110. asap_accepted_issuers = { "jaas-components" }
  111. asap_accepted_audiences = { "jigasi.{{ $PUBLIC_URL_DOMAIN }}" }
  112. {{ end }}
  113. VirtualHost "{{ $XMPP_DOMAIN }}"
  114. {{ if $ENABLE_AUTH }}
  115. {{ if eq $PROSODY_AUTH_TYPE "jwt" }}
  116. authentication = "{{ $JWT_AUTH_TYPE }}"
  117. app_id = "{{ .Env.JWT_APP_ID }}"
  118. app_secret = "{{ .Env.JWT_APP_SECRET }}"
  119. allow_empty_token = {{ $JWT_ALLOW_EMPTY }}
  120. {{ if $JWT_ASAP_KEYSERVER }}
  121. asap_key_server = "{{ .Env.JWT_ASAP_KEYSERVER }}"
  122. {{ end }}
  123. enable_domain_verification = {{ $JWT_ENABLE_DOMAIN_VERIFICATION }}
  124. {{ else if eq $PROSODY_AUTH_TYPE "ldap" }}
  125. authentication = "cyrus"
  126. cyrus_application_name = "xmpp"
  127. allow_unencrypted_plain_auth = true
  128. {{ else if eq $PROSODY_AUTH_TYPE "matrix" }}
  129. authentication = "matrix_user_verification"
  130. app_id = "{{ $MATRIX_UVS_ISSUER }}"
  131. uvs_base_url = "{{ .Env.MATRIX_UVS_URL }}"
  132. {{ if .Env.MATRIX_UVS_AUTH_TOKEN }}
  133. uvs_auth_token = "{{ .Env.MATRIX_UVS_AUTH_TOKEN }}"
  134. {{ end }}
  135. {{ if $MATRIX_UVS_SYNC_POWER_LEVELS }}
  136. uvs_sync_power_levels = true
  137. {{ end }}
  138. {{ else if eq $PROSODY_AUTH_TYPE "hybrid_matrix_token" }}
  139. authentication = "hybrid_matrix_token"
  140. app_id = "{{ .Env.JWT_APP_ID }}"
  141. app_secret = "{{ .Env.JWT_APP_SECRET }}"
  142. allow_empty_token = {{ $JWT_ALLOW_EMPTY }}
  143. enable_domain_verification = {{ $JWT_ENABLE_DOMAIN_VERIFICATION }}
  144. uvs_base_url = "{{ .Env.MATRIX_UVS_URL }}"
  145. {{ if .Env.MATRIX_UVS_ISSUER }}
  146. uvs_issuer = "{{ .Env.MATRIX_UVS_ISSUER }}"
  147. {{ end }}
  148. {{ if .Env.MATRIX_UVS_AUTH_TOKEN }}
  149. uvs_auth_token = "{{ .Env.MATRIX_UVS_AUTH_TOKEN }}"
  150. {{ end }}
  151. {{ else if eq $PROSODY_AUTH_TYPE "internal" }}
  152. authentication = "internal_hashed"
  153. {{ end }}
  154. {{ else }}
  155. authentication = "jitsi-anonymous"
  156. {{ end }}
  157. ssl = {
  158. key = "/config/certs/{{ $XMPP_DOMAIN }}.key";
  159. certificate = "/config/certs/{{ $XMPP_DOMAIN }}.crt";
  160. }
  161. modules_enabled = {
  162. "bosh";
  163. {{ if $ENABLE_XMPP_WEBSOCKET }}
  164. "websocket";
  165. "smacks"; -- XEP-0198: Stream Management
  166. {{ end }}
  167. "pubsub";
  168. "ping";
  169. "speakerstats";
  170. "conference_duration";
  171. "room_metadata";
  172. {{ if $ENABLE_END_CONFERENCE }}
  173. "end_conference";
  174. {{ end }}
  175. {{ if or .Env.TURN_HOST .Env.TURNS_HOST }}
  176. "external_services";
  177. {{ end }}
  178. {{ if $ENABLE_LOBBY }}
  179. "muc_lobby_rooms";
  180. {{ end }}
  181. {{ if $ENABLE_BREAKOUT_ROOMS }}
  182. "muc_breakout_rooms";
  183. {{ end }}
  184. {{ if $ENABLE_AV_MODERATION }}
  185. "av_moderation";
  186. {{ end }}
  187. {{ if .Env.XMPP_MODULES }}
  188. "{{ join "\";\n\"" (splitList "," .Env.XMPP_MODULES) }}";
  189. {{ end }}
  190. {{ if and $ENABLE_AUTH (eq $PROSODY_AUTH_TYPE "ldap") }}
  191. "auth_cyrus";
  192. {{end}}
  193. {{ if $PROSODY_RESERVATION_ENABLED }}
  194. "reservations";
  195. {{ end }}
  196. {{ if $ENABLE_VISITORS }}
  197. "visitors";
  198. {{ end }}
  199. }
  200. main_muc = "{{ $XMPP_MUC_DOMAIN }}"
  201. room_metadata_component = "metadata.{{ $XMPP_DOMAIN }}"
  202. {{ if $ENABLE_LOBBY }}
  203. lobby_muc = "lobby.{{ $XMPP_DOMAIN }}"
  204. {{ if $ENABLE_RECORDING }}
  205. muc_lobby_whitelist = { "{{ $XMPP_RECORDER_DOMAIN }}" }
  206. {{ end }}
  207. {{ end }}
  208. {{ if $PROSODY_RESERVATION_ENABLED }}
  209. reservations_api_prefix = "{{ $PROSODY_RESERVATION_REST_BASE_URL }}"
  210. {{ end }}
  211. {{ if $ENABLE_BREAKOUT_ROOMS }}
  212. breakout_rooms_muc = "breakout.{{ $XMPP_DOMAIN }}"
  213. {{ end }}
  214. speakerstats_component = "speakerstats.{{ $XMPP_DOMAIN }}"
  215. conference_duration_component = "conferenceduration.{{ $XMPP_DOMAIN }}"
  216. {{ if $ENABLE_END_CONFERENCE }}
  217. end_conference_component = "endconference.{{ $XMPP_DOMAIN }}"
  218. {{ end }}
  219. {{ if $ENABLE_AV_MODERATION }}
  220. av_moderation_component = "avmoderation.{{ $XMPP_DOMAIN }}"
  221. {{ end }}
  222. c2s_require_encryption = false
  223. {{ if $ENABLE_VISITORS -}}
  224. visitors_ignore_list = { "{{ $XMPP_RECORDER_DOMAIN }}" }
  225. {{ end }}
  226. {{ if .Env.XMPP_CONFIGURATION -}}
  227. {{ join "\n " (splitList "," .Env.XMPP_CONFIGURATION) }}
  228. {{ end -}}
  229. {{ if $ENABLE_GUEST_DOMAIN }}
  230. VirtualHost "{{ $XMPP_GUEST_DOMAIN }}"
  231. authentication = "jitsi-anonymous"
  232. c2s_require_encryption = false
  233. {{ if $ENABLE_VISITORS }}
  234. allow_anonymous_s2s = true
  235. {{ end }}
  236. {{ end }}
  237. VirtualHost "{{ $XMPP_AUTH_DOMAIN }}"
  238. ssl = {
  239. key = "/config/certs/{{ $XMPP_AUTH_DOMAIN }}.key";
  240. certificate = "/config/certs/{{ $XMPP_AUTH_DOMAIN }}.crt";
  241. }
  242. modules_enabled = {
  243. "limits_exception";
  244. }
  245. authentication = "internal_hashed"
  246. {{ if $ENABLE_RECORDING }}
  247. VirtualHost "{{ $XMPP_RECORDER_DOMAIN }}"
  248. modules_enabled = {
  249. "ping";
  250. }
  251. authentication = "internal_hashed"
  252. {{ end }}
  253. Component "{{ $XMPP_INTERNAL_MUC_DOMAIN }}" "muc"
  254. storage = "memory"
  255. modules_enabled = {
  256. "ping";
  257. {{ if .Env.XMPP_INTERNAL_MUC_MODULES -}}
  258. "{{ join "\";\n\"" (splitList "," .Env.XMPP_INTERNAL_MUC_MODULES) }}";
  259. {{ end -}}
  260. }
  261. restrict_room_creation = true
  262. muc_room_locking = false
  263. muc_room_default_public_jids = true
  264. Component "{{ $XMPP_MUC_DOMAIN }}" "muc"
  265. restrict_room_creation = true
  266. storage = "memory"
  267. modules_enabled = {
  268. "muc_meeting_id";
  269. {{ if .Env.XMPP_MUC_MODULES -}}
  270. "{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}";
  271. {{ end -}}
  272. {{ if and $ENABLE_AUTH (or (eq $PROSODY_AUTH_TYPE "jwt") (eq $PROSODY_AUTH_TYPE "hybrid_matrix_token")) -}}
  273. "{{ $JWT_TOKEN_AUTH_MODULE }}";
  274. {{ end }}
  275. {{ if and $ENABLE_AUTH (eq $PROSODY_AUTH_TYPE "matrix") $MATRIX_UVS_SYNC_POWER_LEVELS -}}
  276. "matrix_power_sync";
  277. {{ end -}}
  278. {{ if and $ENABLE_AUTH (eq $PROSODY_AUTH_TYPE "hybrid_matrix_token") $MATRIX_UVS_SYNC_POWER_LEVELS -}}
  279. "matrix_affiliation";
  280. {{ end -}}
  281. {{ if not $DISABLE_POLLS -}}
  282. "polls";
  283. {{ end -}}
  284. {{ if $ENABLE_SUBDOMAINS -}}
  285. "muc_domain_mapper";
  286. {{ end -}}
  287. {{ if $ENABLE_RATE_LIMITS -}}
  288. "muc_rate_limit";
  289. "rate_limit";
  290. {{ end -}}
  291. {{ if .Env.MAX_PARTICIPANTS }}
  292. "muc_max_occupants";
  293. {{ end }}
  294. "muc_password_whitelist";
  295. }
  296. {{ if $ENABLE_RATE_LIMITS -}}
  297. -- Max allowed join/login rate in events per second.
  298. rate_limit_login_rate = {{ $RATE_LIMIT_LOGIN_RATE }};
  299. -- The rate to which sessions from IPs exceeding the join rate will be limited, in bytes per second.
  300. rate_limit_session_rate = {{ $RATE_LIMIT_SESSION_RATE }};
  301. -- The time in seconds, after which the limit for an IP address is lifted.
  302. rate_limit_timeout = {{ $RATE_LIMIT_TIMEOUT }};
  303. -- List of regular expressions for IP addresses that are not limited by this module.
  304. rate_limit_whitelist = {
  305. "127.0.0.1";
  306. {{ range $index, $cidr := (splitList "," $RATE_LIMIT_ALLOW_RANGES) -}}
  307. "{{ $cidr }}";
  308. {{ end -}}
  309. };
  310. rate_limit_whitelist_jids = {
  311. "{{ $JIBRI_RECORDER_USER }}@{{ $XMPP_RECORDER_DOMAIN }}",
  312. "{{ $JIGASI_TRANSCRIBER_USER }}@{{ $XMPP_RECORDER_DOMAIN }}"
  313. }
  314. {{ end -}}
  315. -- The size of the cache that saves state for IP addresses
  316. rate_limit_cache_size = {{ $RATE_LIMIT_CACHE_SIZE }};
  317. muc_room_cache_size = 1000
  318. muc_room_locking = false
  319. muc_room_default_public_jids = true
  320. {{ if .Env.XMPP_MUC_CONFIGURATION -}}
  321. {{ join "\n" (splitList "," .Env.XMPP_MUC_CONFIGURATION) }}
  322. {{ end -}}
  323. {{ if .Env.MAX_PARTICIPANTS }}
  324. muc_access_whitelist = { "focus@{{ .Env.XMPP_AUTH_DOMAIN }}" }
  325. muc_max_occupants = "{{ .Env.MAX_PARTICIPANTS }}"
  326. {{ end }}
  327. muc_password_whitelist = {
  328. "focus@{{ .Env.XMPP_AUTH_DOMAIN }}"
  329. }
  330. Component "focus.{{ $XMPP_DOMAIN }}" "client_proxy"
  331. target_address = "focus@{{ $XMPP_AUTH_DOMAIN }}"
  332. Component "speakerstats.{{ $XMPP_DOMAIN }}" "speakerstats_component"
  333. muc_component = "{{ $XMPP_MUC_DOMAIN }}"
  334. Component "conferenceduration.{{ $XMPP_DOMAIN }}" "conference_duration_component"
  335. muc_component = "{{ $XMPP_MUC_DOMAIN }}"
  336. {{ if $ENABLE_END_CONFERENCE }}
  337. Component "endconference.{{ $XMPP_DOMAIN }}" "end_conference"
  338. muc_component = "{{ $XMPP_MUC_DOMAIN }}"
  339. {{ end }}
  340. {{ if $ENABLE_AV_MODERATION }}
  341. Component "avmoderation.{{ $XMPP_DOMAIN }}" "av_moderation_component"
  342. muc_component = "{{ $XMPP_MUC_DOMAIN }}"
  343. {{ end }}
  344. {{ if $ENABLE_LOBBY }}
  345. Component "lobby.{{ $XMPP_DOMAIN }}" "muc"
  346. storage = "memory"
  347. restrict_room_creation = true
  348. muc_room_locking = false
  349. muc_room_default_public_jids = true
  350. modules_enabled = {
  351. {{ if $ENABLE_RATE_LIMITS -}}
  352. "muc_rate_limit";
  353. {{ end -}}
  354. }
  355. {{ end }}
  356. {{ if $ENABLE_BREAKOUT_ROOMS }}
  357. Component "breakout.{{ $XMPP_DOMAIN }}" "muc"
  358. storage = "memory"
  359. restrict_room_creation = true
  360. muc_room_locking = false
  361. muc_room_default_public_jids = true
  362. modules_enabled = {
  363. "muc_meeting_id";
  364. {{ if $ENABLE_SUBDOMAINS -}}
  365. "muc_domain_mapper";
  366. {{ end -}}
  367. {{ if not $DISABLE_POLLS -}}
  368. "polls";
  369. {{ end -}}
  370. {{ if $ENABLE_RATE_LIMITS -}}
  371. "muc_rate_limit";
  372. {{ end -}}
  373. }
  374. {{ end }}
  375. Component "metadata.{{ $XMPP_DOMAIN }}" "room_metadata_component"
  376. muc_component = "{{ $XMPP_MUC_DOMAIN }}"
  377. breakout_rooms_component = "breakout.{{ $XMPP_DOMAIN }}"
  378. {{ if $ENABLE_VISITORS }}
  379. Component "visitors.{{ $XMPP_DOMAIN }}" "visitors_component"
  380. auto_allow_visitor_promotion = true
  381. {{ end }}