jicofo.conf 5.5 KB

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