|
1 | 1 | {{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" -}}
|
| 2 | +{{ $ENABLE_VISITORS := .Env.ENABLE_VISITORS | default "0" | toBool -}} |
2 | 3 | {{ $JICOFO_ENABLE_AUTH := .Env.JICOFO_ENABLE_AUTH | default $ENABLE_AUTH | toBool -}}
|
3 | 4 | {{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" -}}
|
4 | 5 | {{ $JICOFO_AUTH_TYPE := .Env.JICOFO_AUTH_TYPE | default $AUTH_TYPE -}}
|
|
18 | 19 | {{ $JVB_XMPP_INTERNAL_MUC_DOMAIN := .Env.JVB_XMPP_INTERNAL_MUC_DOMAIN | default "muc.jvb.meet.jitsi" -}}
|
19 | 20 | {{ $JVB_XMPP_PORT := .Env.JVB_XMPP_PORT | default "6222" -}}
|
20 | 21 | {{ $JVB_XMPP_SERVER := .Env.JVB_XMPP_SERVER | default "xmpp.jvb.meet.jitsi" -}}
|
| 22 | +{{ $VISITORS_XMPP_SERVER := .Env.VISITORS_XMPP_SERVER | default "" -}} |
| 23 | +{{ $VISITORS_XMPP_SERVERS := splitList "," $VISITORS_XMPP_SERVER -}} |
| 24 | +{{ $VISITORS_XMPP_PORT := .Env.VISITORS_XMPP_PORT | default "52220" }} |
21 | 25 | {{ $XMPP_AUTH_DOMAIN := .Env.XMPP_AUTH_DOMAIN | default "auth.meet.jitsi" -}}
|
22 | 26 | {{ $XMPP_MUC_DOMAIN := .Env.XMPP_MUC_DOMAIN | default "muc.meet.jitsi" -}}
|
23 | 27 | {{ $XMPP_INTERNAL_MUC_DOMAIN := .Env.XMPP_INTERNAL_MUC_DOMAIN | default "internal-muc.meet.jitsi" -}}
|
24 | 28 | {{ $XMPP_DOMAIN := .Env.XMPP_DOMAIN | default "meet.jitsi" -}}
|
25 | 29 | {{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}}
|
26 | 30 | {{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
|
27 | 31 | {{ $XMPP_SERVER := .Env.XMPP_SERVER | default "xmpp.meet.jitsi" -}}
|
| 32 | +{{ $ENV := .Env }} |
28 | 33 |
|
29 | 34 | jicofo {
|
30 | 35 | {{ if $JICOFO_ENABLE_AUTH }}
|
@@ -58,9 +63,16 @@ jicofo {
|
58 | 63 | stress-threshold = "{{ .Env.BRIDGE_STRESS_THRESHOLD }}"
|
59 | 64 | {{ end }}
|
60 | 65 |
|
| 66 | + {{ if $ENABLE_VISITORS }} |
| 67 | + selection-strategy = VisitorSelectionStrategy |
| 68 | + visitor-selection-strategy = RegionBasedBridgeSelectionStrategy |
| 69 | + participant-selection-strategy = RegionBasedBridgeSelectionStrategy |
| 70 | + topology-strategy = VisitorTopologyStrategy |
| 71 | + {{ else }} |
61 | 72 | {{ if .Env.OCTO_BRIDGE_SELECTION_STRATEGY }}
|
62 | 73 | selection-strategy = "{{ .Env.OCTO_BRIDGE_SELECTION_STRATEGY }}"
|
63 | 74 | {{ end }}
|
| 75 | + {{ end }} |
64 | 76 |
|
65 | 77 | {{ if .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}
|
66 | 78 | health-checks {
|
@@ -193,8 +205,39 @@ jicofo {
|
193 | 205 | sctp {
|
194 | 206 | enabled = {{ $ENABLE_SCTP }}
|
195 | 207 | }
|
| 208 | +{{ if $ENABLE_VISITORS }} |
| 209 | + visitors { |
| 210 | + enabled = true |
196 | 211 |
|
| 212 | + {{ if .Env.VISITORS_MAX_PARTICIPANTS }} |
| 213 | + max-participants = {{ .Env.VISITORS_MAX_PARTICIPANTS }} |
| 214 | + {{ end }} |
| 215 | + {{ if .Env.VISITORS_MAX_VISITORS_PER_NODE }} |
| 216 | + max-visitors-per-node = {{ .Env.VISITORS_MAX_VISITORS_PER_NODE }} |
| 217 | + {{ end }} |
| 218 | + } |
| 219 | +{{ end }} |
197 | 220 | xmpp {
|
| 221 | + {{ if $ENABLE_VISITORS }} |
| 222 | + {{ if $.Env.VISITORS_XMPP_SERVER }} |
| 223 | + visitors { |
| 224 | + {{ range $index, $element := $VISITORS_XMPP_SERVERS -}} |
| 225 | + {{ $SERVER := splitn ":" 2 $element }} |
| 226 | + v{{ $index }} { |
| 227 | + enabled = true |
| 228 | + conference-service = conference.v{{ $index }}.{{ $XMPP_DOMAIN }} |
| 229 | + hostname = {{ $SERVER._0 }} |
| 230 | + {{ $DEFAULT_PORT := add $VISITORS_XMPP_PORT $index }} |
| 231 | + port = {{ $SERVER._1 | default $DEFAULT_PORT }} |
| 232 | + domain = "{{ $XMPP_AUTH_DOMAIN }}" |
| 233 | + xmpp-domain = v{{ $index }}.{{ $XMPP_DOMAIN }} |
| 234 | + password = "{{ $ENV.JICOFO_AUTH_PASSWORD }}" |
| 235 | + disable-certificate-verification = true |
| 236 | + } |
| 237 | + {{ end }} |
| 238 | + } |
| 239 | + {{ end }} |
| 240 | + {{ end }} |
198 | 241 | client {
|
199 | 242 | enabled = true
|
200 | 243 | hostname = "{{ $XMPP_SERVER }}"
|
|
0 commit comments