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