jitsi-meet.cfg.lua 17 KB

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