jicofo,prosody: migrate to new reservations system

It's now implemented in Prosody rather than in Jicofo.
pull/1304/head
Mahdhi Rezvi 3 years ago committed by GitHub
parent 70c5cbfde2
commit 8337c0b108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docker-compose.yml
  2. 7
      jicofo/rootfs/defaults/jicofo.conf
  3. 9
      prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua

@ -199,6 +199,8 @@ services:
- LDAP_START_TLS - LDAP_START_TLS
- LDAP_URL - LDAP_URL
- LDAP_USE_TLS - LDAP_USE_TLS
- PROSODY_RESERVATION_ENABLED
- PROSODY_RESERVATION_REST_BASE_URL
- PUBLIC_URL - PUBLIC_URL
- TURN_CREDENTIALS - TURN_CREDENTIALS
- TURN_HOST - TURN_HOST
@ -247,8 +249,6 @@ services:
- JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT - JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT
- JICOFO_ENABLE_HEALTH_CHECKS - JICOFO_ENABLE_HEALTH_CHECKS
- JICOFO_SHORT_ID - JICOFO_SHORT_ID
- JICOFO_RESERVATION_ENABLED
- JICOFO_RESERVATION_REST_BASE_URL
- JIBRI_BREWERY_MUC - JIBRI_BREWERY_MUC
- JIBRI_REQUEST_RETRIES - JIBRI_REQUEST_RETRIES
- JIBRI_PENDING_TIMEOUT - JIBRI_PENDING_TIMEOUT

@ -156,11 +156,4 @@ jicofo {
trusted-domains = [ "{{ $XMPP_RECORDER_DOMAIN }}" ] trusted-domains = [ "{{ $XMPP_RECORDER_DOMAIN }}" ]
{{ end }} {{ end }}
} }
{{ if .Env.JICOFO_RESERVATION_ENABLED | default "false" | toBool }}
reservation {
enabled = "{{ .Env.JICOFO_RESERVATION_ENABLED }}"
base-url = "{{ .Env.JICOFO_RESERVATION_REST_BASE_URL }}"
}
{{ end }}
} }

@ -28,6 +28,8 @@
{{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}} {{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}}
{{ $DISABLE_POLLS := .Env.DISABLE_POLLS | default "false" | toBool -}} {{ $DISABLE_POLLS := .Env.DISABLE_POLLS | default "false" | toBool -}}
{{ $ENABLE_SUBDOMAINS := .Env.ENABLE_SUBDOMAINS | default "true" | toBool -}} {{ $ENABLE_SUBDOMAINS := .Env.ENABLE_SUBDOMAINS | default "true" | toBool -}}
{{ $PROSODY_RESERVATION_ENABLED := .Env.PROSODY_RESERVATION_ENABLED | default "false" | toBool }}
{{ $PROSODY_RESERVATION_REST_BASE_URL := .Env.PROSODY_RESERVATION_REST_BASE_URL | default "" }}
admins = { admins = {
"{{ $JICOFO_AUTH_USER }}@{{ $XMPP_AUTH_DOMAIN }}", "{{ $JICOFO_AUTH_USER }}@{{ $XMPP_AUTH_DOMAIN }}",
@ -150,6 +152,9 @@ VirtualHost "{{ $XMPP_DOMAIN }}"
{{ if and $ENABLE_AUTH (eq $AUTH_TYPE "ldap") }} {{ if and $ENABLE_AUTH (eq $AUTH_TYPE "ldap") }}
"auth_cyrus"; "auth_cyrus";
{{end}} {{end}}
{{ if $PROSODY_RESERVATION_ENABLED }}
"reservations";
{{ end }}
} }
main_muc = "{{ $XMPP_MUC_DOMAIN }}" main_muc = "{{ $XMPP_MUC_DOMAIN }}"
@ -161,6 +166,10 @@ VirtualHost "{{ $XMPP_DOMAIN }}"
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if $PROSODY_RESERVATION_ENABLED }}
reservations_api_prefix = { "{{ $PROSODY_RESERVATION_REST_BASE_URL }}" }
{{ end }}
{{ if $ENABLE_BREAKOUT_ROOMS }} {{ if $ENABLE_BREAKOUT_ROOMS }}
breakout_rooms_muc = "breakout.{{ $XMPP_DOMAIN }}" breakout_rooms_muc = "breakout.{{ $XMPP_DOMAIN }}"
{{ end }} {{ end }}

Loading…
Cancel
Save