jitsi-meet.cfg.lua 17 KB

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