jicofo.conf 5.0 KB

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