Browse Source

jicofo: add support of reservation REST API

Mohammed 5 năm trước cách đây
mục cha
commit
2b9a13b
3 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 1 0
      docker-compose.yml
  2. 3 0
      env.example
  3. 4 0
      jicofo/rootfs/defaults/sip-communicator.properties

+ 1 - 0
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

+ 3 - 0
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
 

+ 4 - 0
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 }}