jitsi-meet.cfg.lua 17 KB

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