jitsi-meet.cfg.lua 17 KB

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