jitsi-meet.cfg.lua 17 KB

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