jicofo.conf 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. {{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }}
  2. {{ $ENABLE_SCTP := .Env.ENABLE_SCTP | default "0" | toBool }}
  3. {{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }}
  4. {{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool }}
  5. {{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool }}
  6. {{ $ENABLE_AUTO_LOGIN := .Env.ENABLE_AUTO_LOGIN | default "1" | toBool }}
  7. {{ $ENABLE_REST := Env.JICOFO_ENABLE_REST | default "0" | toBool }}
  8. {{ $ENABLE_JVB_XMPP_SERVER := Env.ENABLE_JVB_XMPP_SERVER | default "0" | toBool }}
  9. {{ $JIBRI_BREWERY_MUC := .Env.JIBRI_BREWERY_MUC | default "jibribrewery" -}}
  10. {{ $JIGASI_BREWERY_MUC := .Env.JIGASI_BREWERY_MUC | default "jigasibrewery" -}}
  11. {{ $JVB_BREWERY_MUC := .Env.JVB_BREWERY_MUC | default "jvbbrewery" -}}
  12. {{ $JIBRI_PENDING_TIMEOUT := .Env.JIBRI_PENDING_TIMEOUT | default 90 -}}
  13. {{ $JVB_XMPP_AUTH_DOMAIN := .Env.JVB_XMPP_AUTH_DOMAIN | default "auth.jvb.meet.jitsi" -}}
  14. {{ $JVB_XMPP_INTERNAL_MUC_DOMAIN := .Env.JVB_XMPP_INTERNAL_MUC_DOMAIN | default "muc.jvb.meet.jitsi" -}}
  15. {{ $JVB_XMPP_PORT := .Env.JVB_XMPP_PORT | default "6222" -}}
  16. {{ $JVB_XMPP_SERVER := .Env.JVB_XMPP_SERVER | default "xmpp.jvb.meet.jitsi" -}}
  17. {{ $XMPP_AUTH_DOMAIN := .Env.XMPP_AUTH_DOMAIN | default "auth.meet.jitsi" -}}
  18. {{ $XMPP_MUC_DOMAIN := .Env.XMPP_MUC_DOMAIN | default "muc.meet.jitsi" -}}
  19. {{ $XMPP_INTERNAL_MUC_DOMAIN := .Env.XMPP_INTERNAL_MUC_DOMAIN | default "internal-muc.meet.jitsi" -}}
  20. {{ $XMPP_DOMAIN := .Env.XMPP_DOMAIN | default "meet.jitsi" -}}
  21. {{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}}
  22. {{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
  23. {{ $XMPP_SERVER := .Env.XMPP_SERVER | default "xmpp.meet.jitsi" -}}
  24. jicofo {
  25. {{ if $ENABLE_AUTH }}
  26. authentication {
  27. enabled = true
  28. // The type of authentication. Supported values are XMPP, JWT or SHIBBOLETH (default).
  29. {{ if eq $AUTH_TYPE "jwt" }}
  30. type = JWT
  31. {{ else if eq $AUTH_TYPE "shibboleth" }}
  32. type = SHIBBOLETH
  33. {{ else }}
  34. type = XMPP
  35. {{ end }}
  36. {{ if eq $AUTH_TYPE "shibboleth" }}
  37. login-url = "shibboleth:default"
  38. logout-url = "shibboleth:default"
  39. {{ else }}
  40. login-url = "{{ $XMPP_DOMAIN }}"
  41. {{ end }}
  42. enable-auto-login={{ $ENABLE_AUTO_LOGIN }}
  43. }
  44. {{ end }}
  45. // Configuration related to jitsi-videobridge
  46. bridge {
  47. {{ if .Env.MAX_BRIDGE_PARTICIPANTS }}
  48. max-bridge-participants = "{{ .Env.MAX_BRIDGE_PARTICIPANTS }}"
  49. {{ end }}
  50. {{ if .Env.BRIDGE_AVG_PARTICIPANT_STRESS }}
  51. // The assumed average stress per participant. default is 0.01
  52. average-participant-stress = "{{ .Env.BRIDGE_AVG_PARTICIPANT_STRESS }}"
  53. {{ end }}
  54. {{ if .Env.BRIDGE_STRESS_THRESHOLD }}
  55. // The stress level above which a bridge is considered overstressed. 0.8 is the default value
  56. stress-threshold = "{{ .Env.BRIDGE_STRESS_THRESHOLD }}"
  57. {{ end }}
  58. {{ if .Env.OCTO_BRIDGE_SELECTION_STRATEGY }}
  59. selection-strategy = "{{ .Env.OCTO_BRIDGE_SELECTION_STRATEGY }}"
  60. {{ end }}
  61. {{ if .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}
  62. health-checks {
  63. enabled = {{ .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS | toBool }}
  64. }
  65. {{ end }}
  66. {{ if $ENABLE_JVB_XMPP_SERVER }}
  67. brewery-jid = "{{ $JVB_BREWERY_MUC }}@{{ $JVB_XMPP_INTERNAL_MUC_DOMAIN }}"
  68. {{ else }}
  69. brewery-jid = "{{ $JVB_BREWERY_MUC }}@{{ $XMPP_INTERNAL_MUC_DOMAIN }}"
  70. {{ end }}
  71. {{ if .Env.JICOFO_BRIDGE_REGION_GROUPS }}
  72. region-groups = [{{ .Env.JICOFO_BRIDGE_REGION_GROUPS }}]
  73. {{ end }}
  74. }
  75. // Configure the codecs and RTP extensions to be used in the offer sent to clients.
  76. codec {
  77. video {
  78. {{ if .Env.ENABLE_CODEC_VP8 }}
  79. vp8 {
  80. enabled = "{{ .Env.ENABLE_CODEC_VP8 }}"
  81. }
  82. {{ end }}
  83. {{ if .Env.ENABLE_CODEC_VP9 }}
  84. vp9 {
  85. enabled = "{{ .Env.ENABLE_CODEC_VP9 }}"
  86. }
  87. {{ end }}
  88. {{ if .Env.ENABLE_CODEC_H264 }}
  89. h264 {
  90. enabled = "{{ .Env.ENABLE_CODEC_H264 }}"
  91. }
  92. {{ end }}
  93. }
  94. }
  95. conference {
  96. {{ if .Env.ENABLE_AUTO_OWNER }}
  97. enable-auto-owner = {{ .Env.ENABLE_AUTO_OWNER | toBool }}
  98. {{ end }}
  99. {{ if .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }}
  100. initial-timeout = "{{ .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }}"
  101. {{ end }}
  102. {{ if .Env.JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT }}
  103. single-participant-timeout = "{{ .Env.JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT }}"
  104. {{ end }}
  105. }
  106. {{ if .Env.JICOFO_ENABLE_HEALTH_CHECKS }}
  107. // Configuration for the internal health checks performed by jicofo.
  108. health {
  109. // Whether to perform health checks.
  110. enabled = {{ .Env.JICOFO_ENABLE_HEALTH_CHECKS | toBool }}
  111. }
  112. {{ end }}
  113. {{ if $ENABLE_RECORDING }}
  114. jibri {
  115. brewery-jid = "{{ $JIBRI_BREWERY_MUC }}@{{ $XMPP_INTERNAL_MUC_DOMAIN }}"
  116. {{ if .Env.JIBRI_REQUEST_RETRIES }}
  117. num-retries = "{{ .Env.JIBRI_REQUEST_RETRIES }}"
  118. {{ end }}
  119. pending-timeout = "{{ $JIBRI_PENDING_TIMEOUT }}"
  120. }
  121. {{ end }}
  122. {{ if and .Env.JIGASI_SIP_URI $JIGASI_BREWERY_MUC }}
  123. jigasi {
  124. brewery-jid = "{{ $JIGASI_BREWERY_MUC }}@{{ $XMPP_INTERNAL_MUC_DOMAIN }}"
  125. }
  126. {{ end }}
  127. {{ if .Env.JICOFO_OCTO_REGION }}
  128. local-region = "{{ .Env.JICOFO_OCTO_REGION }}"
  129. {{ end }}
  130. octo {
  131. // Whether or not to use Octo. Note that when enabled, its use will be determined by
  132. // $jicofo.bridge.selection-strategy. There's a corresponding flag in the JVB and these
  133. // two MUST be in sync (otherwise bridges will crash because they won't know how to
  134. // deal with octo channels).
  135. enabled = {{ $ENABLE_OCTO }}
  136. }
  137. {{ if $ENABLE_REST }}
  138. rest {
  139. host = "0.0.0.0"
  140. }
  141. {{ end }}
  142. sctp {
  143. enabled = {{ $ENABLE_SCTP }}
  144. }
  145. xmpp {
  146. client {
  147. enabled = true
  148. hostname = "{{ $XMPP_SERVER }}"
  149. port = "{{ $XMPP_PORT }}"
  150. domain = "{{ $XMPP_AUTH_DOMAIN }}"
  151. xmpp-domain = "{{ $XMPP_DOMAIN }}"
  152. username = "focus"
  153. password = "{{ .Env.JICOFO_AUTH_PASSWORD }}"
  154. conference-muc-jid = "{{ $XMPP_MUC_DOMAIN }}"
  155. client-proxy = "focus.{{ $XMPP_DOMAIN }}"
  156. disable-certificate-verification = true
  157. }
  158. {{ if $ENABLE_JVB_XMPP_SERVER }}
  159. service {
  160. enabled = true
  161. hostname = "{{ $JVB_XMPP_SERVER }}"
  162. port = "{{ $JVB_XMPP_PORT }}"
  163. domain = "{{ $JVB_XMPP_AUTH_DOMAIN }}"
  164. username = "focus"
  165. password = "{{ .Env.JICOFO_AUTH_PASSWORD }}"
  166. }
  167. {{ end }}
  168. {{ if $ENABLE_RECORDING }}
  169. trusted-domains = [ "{{ $XMPP_RECORDER_DOMAIN }}" ]
  170. {{ end }}
  171. }
  172. }