Skip to content

Commit 1205170

Browse files
authored
jvb: allow TCP_HARVESTER_MAPPED_PORT to be configured
1 parent f7796a1 commit 1205170

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ Variable | Description | Default value
428428
`JVB_PORT` | UDP port for media used by Jitsi Videobridge | 10000
429429
`JVB_TCP_HARVESTER_DISABLED` | Disable the additional harvester which allows video over TCP (rather than just UDP) | true
430430
`JVB_TCP_PORT` | TCP port for media used by Jitsi Videobridge when the TCP Harvester is enabled | 4443
431+
`JVB_TCP_MAPPED_PORT` | TCP port advertised by Jitsi Videobridge | 4443
431432
`JVB_BREWERY_MUC` | MUC name for the JVB pool | jvbbrewery
432433
`JVB_ENABLE_APIS` | Comma separated list of JVB APIs to enable | none
433434
`JIGASI_XMPP_USER` | XMPP user for Jigasi MUC client connections | jigasi

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ services:
141141
restart: ${RESTART_POLICY}
142142
ports:
143143
- '${JVB_PORT}:${JVB_PORT}/udp'
144-
- '${JVB_TCP_PORT}:${JVB_TCP_PORT}'
144+
- '${JVB_TCP_MAPPED_PORT}:${JVB_TCP_PORT}'
145145
volumes:
146146
- ${CONFIG}/jvb:/config
147147
environment:

env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ JVB_PORT=10000
215215
# TCP Fallback for Jitsi Videobridge for when UDP isn't available
216216
JVB_TCP_HARVESTER_DISABLED=true
217217
JVB_TCP_PORT=4443
218+
# JVB_TCP_MAPPED_PORT=4443
218219

219220
# A comma separated list of APIs to enable when the JVB is started [default: none]
220221
# See https://github.com/jitsi/jitsi-videobridge/blob/master/doc/rest.md for more information

examples/traefik-v2/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ services:
144144
image: jitsi/jvb
145145
ports:
146146
- '${JVB_PORT}:${JVB_PORT}/udp'
147-
- '${JVB_TCP_PORT}:${JVB_TCP_PORT}'
147+
- '${JVB_TCP_MAPPED_PORT}:${JVB_TCP_PORT}'
148148
volumes:
149149
- ${CONFIG}/jvb:/config
150150
environment:

jvb/rootfs/defaults/sip-communicator.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ org.jitsi.videobridge.TCP_HARVESTER_PORT={{ .Env.JVB_TCP_PORT }}
44
{{ if .Env.JVB_STUN_SERVERS }}
55
org.ice4j.ice.harvest.STUN_MAPPING_HARVESTER_ADDRESSES={{ .Env.JVB_STUN_SERVERS }}
66
{{ end }}
7+
{{ $JVB_TCP_PORT := .Env.JVB_TCP_PORT | default "4443" }}
8+
{{ $JVB_TCP_MAPPED_PORT := .Env.JVB_TCP_MAPPED_PORT | default $JVB_TCP_PORT }}
9+
{{ if not (eq $JVB_TCP_PORT $JVB_TCP_MAPPED_PORT) }}
10+
org.jitsi.videobridge.TCP_HARVESTER_MAPPED_PORT={{ $JVB_TCP_MAPPED_PORT }}
11+
{{ end }}
712

813
org.jitsi.videobridge.xmpp.user.shard.HOSTNAME={{ .Env.XMPP_SERVER }}
914
org.jitsi.videobridge.xmpp.user.shard.DOMAIN={{ .Env.XMPP_AUTH_DOMAIN }}

0 commit comments

Comments
 (0)