|
| 1 | +{{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }} |
| 2 | +{{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }} |
| 3 | +{{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool }} |
| 4 | + |
| 5 | +jicofo { |
| 6 | + {{ if $ENABLE_AUTH }} |
| 7 | + authentication { |
| 8 | + enabled = true |
| 9 | + // The type of authentication. Supported values are XMPP, JWT or SHIBBOLETH (default). |
| 10 | + {{ if eq $AUTH_TYPE "jwt" }} |
| 11 | + type = JWT |
| 12 | + {{ else }} |
| 13 | + type = XMPP |
| 14 | + {{ end }} |
| 15 | + login-url = "{{ .Env.XMPP_DOMAIN }}" |
| 16 | + } |
| 17 | + {{ end }} |
| 18 | + |
| 19 | + // Configuration related to jitsi-videobridge |
| 20 | + bridge { |
| 21 | + {{ if .Env.MAX_BRIDGE_PARTICIPANTS }} |
| 22 | + max-bridge-participants = "{{ .Env.MAX_BRIDGE_PARTICIPANTS }}" |
| 23 | + {{ end }} |
| 24 | + |
| 25 | + {{ if .Env.BRIDGE_AVG_PARTICIPANT_STRESS }} |
| 26 | + // The assumed average stress per participant. default is 0.01 |
| 27 | + average-participant-stress = "{{ .Env.BRIDGE_AVG_PARTICIPANT_STRESS }}" |
| 28 | + {{ end }} |
| 29 | + |
| 30 | + {{ if .Env.BRIDGE_STRESS_THRESHOLD }} |
| 31 | + // The stress level above which a bridge is considered overstressed. 0.8 is the default value |
| 32 | + stress-threshold = "{{ .Env.BRIDGE_STRESS_THRESHOLD }}" |
| 33 | + {{ end }} |
| 34 | + |
| 35 | + {{ if .Env.OCTO_BRIDGE_SELECTION_STRATEGY }} |
| 36 | + selection-strategy = "{{ .Env.OCTO_BRIDGE_SELECTION_STRATEGY }}" |
| 37 | + {{ end }} |
| 38 | + |
| 39 | + {{ if .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }} |
| 40 | + health-checks { |
| 41 | + enabled = "{{ .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}" |
| 42 | + } |
| 43 | + {{ end }} |
| 44 | + |
| 45 | + brewery-jid = "{{ .Env.JVB_BREWERY_MUC }}@{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}" |
| 46 | + } |
| 47 | + // Configure the codecs and RTP extensions to be used in the offer sent to clients. |
| 48 | + codec { |
| 49 | + video { |
| 50 | + {{ if .Env.ENABLE_CODEC_VP8 }} |
| 51 | + vp8 { |
| 52 | + enabled = "{{ .Env.ENABLE_CODEC_VP8 }}" |
| 53 | + } |
| 54 | + {{ end }} |
| 55 | + {{ if .Env.ENABLE_CODEC_VP9 }} |
| 56 | + vp9 { |
| 57 | + enabled = "{{ .Env.ENABLE_CODEC_VP9 }}" |
| 58 | + } |
| 59 | + {{ end }} |
| 60 | + {{ if .Env.ENABLE_CODEC_H264 }} |
| 61 | + h264 { |
| 62 | + enabled = "{{ .Env.ENABLE_CODEC_H264 }}" |
| 63 | + } |
| 64 | + {{ end }} |
| 65 | + } |
| 66 | + } |
| 67 | + |
| 68 | + conference { |
| 69 | + {{ if .Env.ENABLE_AUTO_OWNER }} |
| 70 | + enable-auto-owner = "{{ .Env.ENABLE_AUTO_OWNER }}" |
| 71 | + {{ end }} |
| 72 | + |
| 73 | + {{ if .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }} |
| 74 | + initial-timeout = "{{ .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }}" |
| 75 | + {{ end }} |
| 76 | + |
| 77 | + {{ if .Env.JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT }} |
| 78 | + single-participant-timeout = "{{ .Env.JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT }}" |
| 79 | + {{ end }} |
| 80 | + } |
| 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 }}" |
| 87 | + } |
| 88 | + {{ end }} |
| 89 | + |
| 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 | + |
| 102 | + {{ if and .Env.JIGASI_SIP_URI .Env.JIGASI_BREWERY_MUC }} |
| 103 | + jigasi { |
| 104 | + brewery-jid = "{{ .Env.JIGASI_BREWERY_MUC}}@{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}" |
| 105 | + } |
| 106 | + {{ end }} |
| 107 | + |
| 108 | + octo { |
| 109 | + id = "{{ .Env.JICOFO_SHORT_ID | default "1" }}" |
| 110 | + } |
| 111 | + |
| 112 | + {{ if .Env.ENABLE_SCTP }} |
| 113 | + sctp { |
| 114 | + enabled = "{{ .Env.ENABLE_SCTP }}" |
| 115 | + } |
| 116 | + {{ end }} |
| 117 | + |
| 118 | + xmpp { |
| 119 | + client { |
| 120 | + enabled = true |
| 121 | + hostname = "{{ .Env.XMPP_SERVER }}" |
| 122 | + domain = "{{ .Env.XMPP_AUTH_DOMAIN }}" |
| 123 | + username = "{{ .Env.JICOFO_AUTH_USER }}" |
| 124 | + password = "{{ .Env.JICOFO_AUTH_PASSWORD }}" |
| 125 | + conference-muc-jid = "{{ first (splitList "." .Env.XMPP_MUC_DOMAIN) }}" |
| 126 | + disable-certificate-verification = true |
| 127 | + } |
| 128 | + } |
| 129 | + |
| 130 | + {{ if .Env.JICOFO_RESERVATION_ENABLED | default "false" | toBool }} |
| 131 | + reservation { |
| 132 | + enabled = "{{ .Env.JICOFO_RESERVATION_ENABLED }}" |
| 133 | + base-url = "{{ .Env.JICOFO_RESERVATION_REST_BASE_URL }}" |
| 134 | + } |
| 135 | + {{ end }} |
| 136 | +} |
0 commit comments