jicofo.conf 4.7 KB

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