jicofo.conf 5.4 KB

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