jicofo.conf 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. }
  72. // Configure the codecs and RTP extensions to be used in the offer sent to clients.
  73. codec {
  74. video {
  75. {{ if .Env.ENABLE_CODEC_VP8 }}
  76. vp8 {
  77. enabled = "{{ .Env.ENABLE_CODEC_VP8 }}"
  78. }
  79. {{ end }}
  80. {{ if .Env.ENABLE_CODEC_VP9 }}
  81. vp9 {
  82. enabled = "{{ .Env.ENABLE_CODEC_VP9 }}"
  83. }
  84. {{ end }}
  85. {{ if .Env.ENABLE_CODEC_H264 }}
  86. h264 {
  87. enabled = "{{ .Env.ENABLE_CODEC_H264 }}"
  88. }
  89. {{ end }}
  90. }
  91. }
  92. conference {
  93. {{ if .Env.ENABLE_AUTO_OWNER }}
  94. enable-auto-owner = {{ .Env.ENABLE_AUTO_OWNER | toBool }}
  95. {{ end }}
  96. {{ if .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }}
  97. initial-timeout = "{{ .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }}"
  98. {{ end }}
  99. {{ if .Env.JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT }}
  100. single-participant-timeout = "{{ .Env.JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT }}"
  101. {{ end }}
  102. }
  103. {{ if .Env.JICOFO_ENABLE_HEALTH_CHECKS }}
  104. // Configuration for the internal health checks performed by jicofo.
  105. health {
  106. // Whether to perform health checks.
  107. enabled = {{ .Env.JICOFO_ENABLE_HEALTH_CHECKS | toBool }}
  108. }
  109. {{ end }}
  110. {{ if $ENABLE_RECORDING }}
  111. jibri {
  112. brewery-jid = "{{ $JIBRI_BREWERY_MUC }}@{{ $XMPP_INTERNAL_MUC_DOMAIN }}"
  113. {{ if .Env.JIBRI_REQUEST_RETRIES }}
  114. num-retries = "{{ .Env.JIBRI_REQUEST_RETRIES }}"
  115. {{ end }}
  116. pending-timeout = "{{ $JIBRI_PENDING_TIMEOUT }}"
  117. }
  118. {{ end }}
  119. {{ if and .Env.JIGASI_SIP_URI $JIGASI_BREWERY_MUC }}
  120. jigasi {
  121. brewery-jid = "{{ $JIGASI_BREWERY_MUC }}@{{ $XMPP_INTERNAL_MUC_DOMAIN }}"
  122. }
  123. {{ end }}
  124. octo {
  125. // Whether or not to use Octo. Note that when enabled, its use will be determined by
  126. // $jicofo.bridge.selection-strategy. There's a corresponding flag in the JVB and these
  127. // two MUST be in sync (otherwise bridges will crash because they won't know how to
  128. // deal with octo channels).
  129. enabled = {{ $ENABLE_OCTO }}
  130. }
  131. {{ if $ENABLE_REST }}
  132. rest {
  133. host = "127.0.0.1"
  134. }
  135. {{ end }}
  136. sctp {
  137. enabled = {{ $ENABLE_SCTP }}
  138. }
  139. xmpp {
  140. client {
  141. enabled = true
  142. hostname = "{{ $XMPP_SERVER }}"
  143. port = "{{ $XMPP_PORT }}"
  144. domain = "{{ $XMPP_AUTH_DOMAIN }}"
  145. xmpp-domain = "{{ $XMPP_DOMAIN }}"
  146. username = "focus"
  147. password = "{{ .Env.JICOFO_AUTH_PASSWORD }}"
  148. conference-muc-jid = "{{ $XMPP_MUC_DOMAIN }}"
  149. client-proxy = "focus.{{ $XMPP_DOMAIN }}"
  150. disable-certificate-verification = true
  151. }
  152. {{ if $ENABLE_JVB_XMPP_SERVER }}
  153. service {
  154. enabled = true
  155. hostname = "{{ $JVB_XMPP_SERVER }}"
  156. port = "{{ $JVB_XMPP_PORT }}"
  157. domain = "{{ $JVB_XMPP_AUTH_DOMAIN }}"
  158. username = "focus"
  159. password = "{{ .Env.JICOFO_AUTH_PASSWORD }}"
  160. }
  161. {{ end }}
  162. {{ if $ENABLE_RECORDING }}
  163. trusted-domains = [ "{{ $XMPP_RECORDER_DOMAIN }}" ]
  164. {{ end }}
  165. }
  166. }