jitsi-meet.cfg.lua 18 KB

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