From 8bfe7fbb922edbbfa38e2058c05334d3665577b7 Mon Sep 17 00:00:00 2001 From: Mohammed Date: Tue, 28 Jan 2020 08:53:19 +0100 Subject: [PATCH] jicofo: add support of reservation REST API --- docker-compose.yml | 1 + env.example | 3 +++ jicofo/rootfs/defaults/sip-communicator.properties | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 589e1a5..b6aad95 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -118,6 +118,7 @@ services: - JICOFO_COMPONENT_SECRET - JICOFO_AUTH_USER - JICOFO_AUTH_PASSWORD + - JICOFO_RESERVATION_REST_BASE_URL - JVB_BREWERY_MUC - JIGASI_BREWERY_MUC - JIBRI_BREWERY_MUC diff --git a/env.example b/env.example index 69f032b..bea835f 100644 --- a/env.example +++ b/env.example @@ -201,6 +201,9 @@ JICOFO_AUTH_USER=focus # XMPP password for Jicofo client connections. JICOFO_AUTH_PASSWORD=passw0rd +# Base URL of Jicofo's reservation REST API +#JICOFO_RESERVATION_REST_BASE_URL=http://reservation.example.com + # XMPP user for Jigasi MUC client connections. JIGASI_XMPP_USER=jigasi diff --git a/jicofo/rootfs/defaults/sip-communicator.properties b/jicofo/rootfs/defaults/sip-communicator.properties index 0c7d23a..c28b7b2 100644 --- a/jicofo/rootfs/defaults/sip-communicator.properties +++ b/jicofo/rootfs/defaults/sip-communicator.properties @@ -13,3 +13,7 @@ org.jitsi.jicofo.jigasi.BREWERY={{ .Env.JIGASI_BREWERY_MUC}}@{{ .Env.XMPP_INTERN {{ if .Env.ENABLE_AUTH | default "0" | toBool }} org.jitsi.jicofo.auth.URL=XMPP:{{ .Env.XMPP_DOMAIN }} {{ end }} + +{{ if .Env.JICOFO_RESERVATION_REST_BASE_URL }} +org.jitsi.impl.reservation.rest.BASE_URL={{ .Env.JICOFO_RESERVATION_REST_BASE_URL }} +{{ end }}