jicofo: add optional XMPP_PORT value (#1275)

* jicofo: add optional XMPP_PORT value

* include compose and env example for XMPP_PORT

* extends use of the XMPP_PORT property

* fix compose to use default

* re-commenting XMPP_PORT value

* include XMPP_PORT in compose for all services

* always use $XMPP_PORT, value defaulted in template

* missing JVB setting
pull/1278/head^2
Aaron van Meerten 3 years ago committed by GitHub
parent da0a43a306
commit 95af77896d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docker-compose.yml
  2. 3
      env.example
  3. 1
      jibri.yml
  4. 2
      jibri/rootfs/defaults/jibri.conf
  5. 2
      jicofo/rootfs/defaults/jicofo.conf
  6. 1
      jigasi.yml
  7. 3
      jigasi/rootfs/defaults/sip-communicator.properties
  8. 2
      jvb/rootfs/defaults/jvb.conf
  9. 4
      prosody/rootfs/defaults/prosody.cfg.lua

@ -126,6 +126,7 @@ services:
- XMPP_GUEST_DOMAIN - XMPP_GUEST_DOMAIN
- XMPP_MUC_DOMAIN - XMPP_MUC_DOMAIN
- XMPP_RECORDER_DOMAIN - XMPP_RECORDER_DOMAIN
- XMPP_PORT
networks: networks:
meet.jitsi: meet.jitsi:
@ -134,7 +135,7 @@ services:
image: jitsi/prosody:latest image: jitsi/prosody:latest
restart: ${RESTART_POLICY} restart: ${RESTART_POLICY}
expose: expose:
- '5222' - '${XMPP_PORT:-5222}'
- '5347' - '5347'
- '5280' - '5280'
volumes: volumes:
@ -204,6 +205,7 @@ services:
- XMPP_MUC_MODULES - XMPP_MUC_MODULES
- XMPP_INTERNAL_MUC_MODULES - XMPP_INTERNAL_MUC_MODULES
- XMPP_RECORDER_DOMAIN - XMPP_RECORDER_DOMAIN
- XMPP_PORT
networks: networks:
meet.jitsi: meet.jitsi:
aliases: aliases:
@ -255,6 +257,7 @@ services:
- XMPP_MUC_DOMAIN - XMPP_MUC_DOMAIN
- XMPP_RECORDER_DOMAIN - XMPP_RECORDER_DOMAIN
- XMPP_SERVER - XMPP_SERVER
- XMPP_PORT
depends_on: depends_on:
- prosody - prosody
networks: networks:
@ -295,6 +298,7 @@ services:
- XMPP_AUTH_DOMAIN - XMPP_AUTH_DOMAIN
- XMPP_INTERNAL_MUC_DOMAIN - XMPP_INTERNAL_MUC_DOMAIN
- XMPP_SERVER - XMPP_SERVER
- XMPP_PORT
depends_on: depends_on:
- prosody - prosody
networks: networks:

@ -233,6 +233,9 @@ XMPP_DOMAIN=meet.jitsi
# Internal XMPP server # Internal XMPP server
XMPP_SERVER=xmpp.meet.jitsi XMPP_SERVER=xmpp.meet.jitsi
# Internal XMPP server c2s port
#XMPP_PORT=5222
# Internal XMPP server URL # Internal XMPP server URL
XMPP_BOSH_URL_BASE=http://xmpp.meet.jitsi:5280 XMPP_BOSH_URL_BASE=http://xmpp.meet.jitsi:5280

@ -38,6 +38,7 @@ services:
- XMPP_INTERNAL_MUC_DOMAIN - XMPP_INTERNAL_MUC_DOMAIN
- XMPP_RECORDER_DOMAIN - XMPP_RECORDER_DOMAIN
- XMPP_SERVER - XMPP_SERVER
- XMPP_PORT
- XMPP_TRUST_ALL_CERTS - XMPP_TRUST_ALL_CERTS
depends_on: depends_on:
- jicofo - jicofo

@ -1,6 +1,7 @@
{{ $JIBRI_USAGE_TIMEOUT := .Env.JIBRI_USAGE_TIMEOUT | default "0" -}} {{ $JIBRI_USAGE_TIMEOUT := .Env.JIBRI_USAGE_TIMEOUT | default "0" -}}
{{ $JIBRI_RECORDING_RESOLUTION := .Env.JIBRI_RECORDING_RESOLUTION | default "1280x720" -}} {{ $JIBRI_RECORDING_RESOLUTION := .Env.JIBRI_RECORDING_RESOLUTION | default "1280x720" -}}
{{ $XMPP_TRUST_ALL_CERTS := .Env.XMPP_TRUST_ALL_CERTS | default "true" | toBool -}} {{ $XMPP_TRUST_ALL_CERTS := .Env.XMPP_TRUST_ALL_CERTS | default "true" | toBool -}}
{{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
jibri { jibri {
// A unique identifier for this Jibri // A unique identifier for this Jibri
@ -48,6 +49,7 @@ jibri {
// The login information for the control MUC // The login information for the control MUC
control-login { control-login {
domain = "{{ .Env.XMPP_AUTH_DOMAIN }}" domain = "{{ .Env.XMPP_AUTH_DOMAIN }}"
port = "{{ $XMPP_PORT }}"
username = "{{ .Env.JIBRI_XMPP_USER }}" username = "{{ .Env.JIBRI_XMPP_USER }}"
password = "{{ .Env.JIBRI_XMPP_PASSWORD }}" password = "{{ .Env.JIBRI_XMPP_PASSWORD }}"
} }

@ -4,6 +4,7 @@
{{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool }} {{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool }}
{{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool }} {{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool }}
{{ $ENABLE_AUTO_LOGIN := .Env.ENABLE_AUTO_LOGIN | default "1" | toBool }} {{ $ENABLE_AUTO_LOGIN := .Env.ENABLE_AUTO_LOGIN | default "1" | toBool }}
{{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
jicofo { jicofo {
{{ if $ENABLE_AUTH }} {{ if $ENABLE_AUTH }}
@ -134,6 +135,7 @@ jicofo {
client { client {
enabled = true enabled = true
hostname = "{{ .Env.XMPP_SERVER }}" hostname = "{{ .Env.XMPP_SERVER }}"
port = "{{ $XMPP_PORT }}"
domain = "{{ .Env.XMPP_AUTH_DOMAIN }}" domain = "{{ .Env.XMPP_AUTH_DOMAIN }}"
username = "{{ .Env.JICOFO_AUTH_USER }}" username = "{{ .Env.JICOFO_AUTH_USER }}"
password = "{{ .Env.JICOFO_AUTH_PASSWORD }}" password = "{{ .Env.JICOFO_AUTH_PASSWORD }}"

@ -18,6 +18,7 @@ services:
- XMPP_MUC_DOMAIN - XMPP_MUC_DOMAIN
- XMPP_INTERNAL_MUC_DOMAIN - XMPP_INTERNAL_MUC_DOMAIN
- XMPP_SERVER - XMPP_SERVER
- XMPP_PORT
- XMPP_DOMAIN - XMPP_DOMAIN
- PUBLIC_URL - PUBLIC_URL
- JIGASI_SIP_URI - JIGASI_SIP_URI

@ -1,3 +1,5 @@
{{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
net.java.sip.communicator.impl.protocol.SingleCallInProgressPolicy.enabled=false net.java.sip.communicator.impl.protocol.SingleCallInProgressPolicy.enabled=false
# Adjust opus encoder complexity # Adjust opus encoder complexity
@ -65,6 +67,7 @@ net.java.sip.communicator.impl.protocol.jabber.acc1.ACCOUNT_UID=Jabber:{{ .Env.J
net.java.sip.communicator.impl.protocol.jabber.acc1.USER_ID={{ .Env.JIGASI_XMPP_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }} net.java.sip.communicator.impl.protocol.jabber.acc1.USER_ID={{ .Env.JIGASI_XMPP_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}
net.java.sip.communicator.impl.protocol.jabber.acc1.IS_SERVER_OVERRIDDEN=true net.java.sip.communicator.impl.protocol.jabber.acc1.IS_SERVER_OVERRIDDEN=true
net.java.sip.communicator.impl.protocol.jabber.acc1.SERVER_ADDRESS={{ .Env.XMPP_SERVER }} net.java.sip.communicator.impl.protocol.jabber.acc1.SERVER_ADDRESS={{ .Env.XMPP_SERVER }}
net.java.sip.communicator.impl.protocol.jabber.acc1.SERVER_PORT={{ $XMPP_PORT }}
net.java.sip.communicator.impl.protocol.jabber.acc1.PASSWORD={{ .Env.JIGASI_XMPP_PASSWORD | b64enc }} net.java.sip.communicator.impl.protocol.jabber.acc1.PASSWORD={{ .Env.JIGASI_XMPP_PASSWORD | b64enc }}
net.java.sip.communicator.impl.protocol.jabber.acc1.AUTO_GENERATE_RESOURCE=true net.java.sip.communicator.impl.protocol.jabber.acc1.AUTO_GENERATE_RESOURCE=true
net.java.sip.communicator.impl.protocol.jabber.acc1.RESOURCE_PRIORITY=30 net.java.sip.communicator.impl.protocol.jabber.acc1.RESOURCE_PRIORITY=30

@ -6,6 +6,7 @@
{{ $SHUTDOWN_REST_ENABLED := .Env.SHUTDOWN_REST_ENABLED | default "false" | toBool }} {{ $SHUTDOWN_REST_ENABLED := .Env.SHUTDOWN_REST_ENABLED | default "false" | toBool }}
{{ $WS_DOMAIN := .Env.JVB_WS_DOMAIN | default $PUBLIC_URL_DOMAIN -}} {{ $WS_DOMAIN := .Env.JVB_WS_DOMAIN | default $PUBLIC_URL_DOMAIN -}}
{{ $WS_SERVER_ID := .Env.JVB_WS_SERVER_ID | default .Env.JVB_WS_SERVER_ID_FALLBACK -}} {{ $WS_SERVER_ID := .Env.JVB_WS_SERVER_ID | default .Env.JVB_WS_SERVER_ID_FALLBACK -}}
{{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
videobridge { videobridge {
ice { ice {
@ -18,6 +19,7 @@ videobridge {
configs { configs {
shard { shard {
HOSTNAME = "{{ .Env.XMPP_SERVER }}" HOSTNAME = "{{ .Env.XMPP_SERVER }}"
PORT = "{{ $XMPP_PORT }}"
DOMAIN = "{{ .Env.XMPP_AUTH_DOMAIN }}" DOMAIN = "{{ .Env.XMPP_AUTH_DOMAIN }}"
USERNAME = "{{ .Env.JVB_AUTH_USER }}" USERNAME = "{{ .Env.JVB_AUTH_USER }}"
PASSWORD = "{{ .Env.JVB_AUTH_PASSWORD }}" PASSWORD = "{{ .Env.JVB_AUTH_PASSWORD }}"

@ -1,4 +1,5 @@
{{ $LOG_LEVEL := .Env.LOG_LEVEL | default "info" }} {{ $LOG_LEVEL := .Env.LOG_LEVEL | default "info" }}
{{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
-- Prosody Example Configuration File -- Prosody Example Configuration File
-- --
@ -110,6 +111,9 @@ pidfile = "/config/data/prosody.pid";
c2s_require_encryption = false c2s_require_encryption = false
-- set c2s port
c2s_ports = { {{ $XMPP_PORT }} } -- Listen on specific c2s port
-- Force certificate authentication for server-to-server connections? -- Force certificate authentication for server-to-server connections?
-- This provides ideal security, but requires servers you communicate -- This provides ideal security, but requires servers you communicate
-- with to support encryption AND present valid, trusted certificates. -- with to support encryption AND present valid, trusted certificates.

Loading…
Cancel
Save