core: make HTTP, HTTPS and JVB ports configurable

pull/18/head
Saúl Ibarra Corretgé 6 years ago
parent d7dce6240d
commit e8fde8cb8c
  1. 3
      README.md
  2. 7
      docker-compose.yml
  3. 9
      env.example
  4. 2
      jvb/Dockerfile
  5. 1
      jvb/rootfs/defaults/sip-communicator.properties

@ -84,6 +84,8 @@ Variable | Description | Example
--- | --- | --- --- | --- | ---
`CONFIG` | Directory where all configuration will be stored | /opt/jitsi-meet-cfg `CONFIG` | Directory where all configuration will be stored | /opt/jitsi-meet-cfg
`TZ` | System Time Zone | Europe/Amsterdam `TZ` | System Time Zone | Europe/Amsterdam
`HTTP_PORT` | Exposed port for HTTP traffic | 8000
`HTTPS_PORT` | Exposed port for HTTPS traffic | 8443
`JVB_COMPONENT_SECRET` | XMPP component password for Jitsi Videobridge | s3cr3t `JVB_COMPONENT_SECRET` | XMPP component password for Jitsi Videobridge | s3cr3t
`JVB_STUN_SERVERS` | STUN servers used to discover the server's public IP | stun.l.google.com:19302, stun1.l.google.com:19302, stun2.l.google.com:19302 `JVB_STUN_SERVERS` | STUN servers used to discover the server's public IP | stun.l.google.com:19302, stun1.l.google.com:19302, stun2.l.google.com:19302
`JICOFO_COMPONENT_SECRET` | XMPP component password for Jicofo | s3cr37 `JICOFO_COMPONENT_SECRET` | XMPP component password for Jicofo | s3cr37
@ -101,6 +103,7 @@ Variable | Description | Default value
`XMPP_BOSH_URL_BASE` | Base URL for XMPP BOSH connections | http://xmpp.meet.jitsi:5280 `XMPP_BOSH_URL_BASE` | Base URL for XMPP BOSH connections | http://xmpp.meet.jitsi:5280
`XMPP_MUC_DOMAIN` | XMPP domain for the MUC | muc.meet.jitsi `XMPP_MUC_DOMAIN` | XMPP domain for the MUC | muc.meet.jitsi
`JICOFO_AUTH_USER` | XMPP user for Jicofo client connections | focus `JICOFO_AUTH_USER` | XMPP user for Jicofo client connections | focus
`JVB_PORT` | Port for media used by Jitsi Videobridge | 10000
### Running on a LAN environment ### Running on a LAN environment

@ -5,8 +5,8 @@ services:
web: web:
image: jitsi/web image: jitsi/web
ports: ports:
- '8000:80' - '${HTTP_PORT}:80'
- '8443:443' - '${HTTPS_PORT}:443'
volumes: volumes:
- ${CONFIG}/meet:/config - ${CONFIG}/meet:/config
environment: environment:
@ -62,7 +62,7 @@ services:
jvb: jvb:
image: jitsi/jvb image: jitsi/jvb
ports: ports:
- "10000:10000/udp" - '${JVB_PORT}:${JVB_PORT}/udp'
volumes: volumes:
- ${CONFIG}/jvb:/config - ${CONFIG}/jvb:/config
environment: environment:
@ -71,6 +71,7 @@ services:
- XMPP_AUTH_DOMAIN - XMPP_AUTH_DOMAIN
- XMPP_SERVER=xmpp.meet.jitsi - XMPP_SERVER=xmpp.meet.jitsi
- JVB_COMPONENT_SECRET - JVB_COMPONENT_SECRET
- JVB_PORT
- JVB_STUN_SERVERS - JVB_STUN_SERVERS
- JICOFO_AUTH_USER - JICOFO_AUTH_USER
- TZ - TZ

@ -1,6 +1,12 @@
# Directory where all configuration will be stored. # Directory where all configuration will be stored.
CONFIG=~/.jitsi-meet-cfg CONFIG=~/.jitsi-meet-cfg
# Exposed HTTP port.
HTTP_PORT=8000
# Exposed HTTPS port.
HTTPS_PORT=8443
# System time zone. # System time zone.
TZ=Europe/Amsterdam TZ=Europe/Amsterdam
@ -23,6 +29,9 @@ JVB_COMPONENT_SECRET=s3cr3t
# STUN servers used to discover the server's public IP. # STUN servers used to discover the server's public IP.
JVB_STUN_SERVERS=stun.l.google.com:19302,stun1.l.google.com:19302,stun2.l.google.com:19302 JVB_STUN_SERVERS=stun.l.google.com:19302,stun1.l.google.com:19302,stun2.l.google.com:19302
# Media port for the Jitsi Videobridge
JVB_PORT=10000
# XMPP component password for Jicofo. # XMPP component password for Jicofo.
JICOFO_COMPONENT_SECRET=s3cr37 JICOFO_COMPONENT_SECRET=s3cr37

@ -8,5 +8,3 @@ RUN \
COPY rootfs/ / COPY rootfs/ /
VOLUME /config VOLUME /config
EXPOSE 10000/udp

@ -1,4 +1,5 @@
org.jitsi.videobridge.AUTHORIZED_SOURCE_REGEXP={{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}/.* org.jitsi.videobridge.AUTHORIZED_SOURCE_REGEXP={{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}/.*
org.jitsi.videobridge.SINGLE_PORT_HARVESTER_PORT={{ .Env.JVB_PORT }}
org.jitsi.videobridge.DISABLE_TCP_HARVESTER=true org.jitsi.videobridge.DISABLE_TCP_HARVESTER=true
org.ice4j.ice.harvest.STUN_MAPPING_HARVESTER_ADDRESSES={{ .Env.JVB_STUN_SERVERS }} org.ice4j.ice.harvest.STUN_MAPPING_HARVESTER_ADDRESSES={{ .Env.JVB_STUN_SERVERS }}
org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS= org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=

Loading…
Cancel
Save