Skip to content

Commit dced4f4

Browse files
committed
Dockerfile: Configure TURN ports and expose 5478 50000-50099
1 parent bf46082 commit dced4f4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ HEALTHCHECK \
200200
WORKDIR /$HOME
201201
USER $USER
202202
VOLUME ["/$HOME"]
203-
EXPOSE 1880 1883 4369-4399 5210 5222 5269 5280 5443
203+
EXPOSE 1880 1883 4369-4399 5210 5222 5269 5280 5443 5478 50000-50099
204204

205205
ENTRYPOINT ["/sbin/tini","--","ejabberdctl"]
206206
CMD ["foreground"]

.github/container/ejabberd.yml.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ define_macro:
2424
PORT_HTTP: 5280
2525
PORT_BROWSER: 1880
2626
PORT_STUN: 5478
27+
PORT_TURN_MIN: 50000
28+
PORT_TURN_MAX: 50099
2729
PORT_MQTT: 1883
2830
PORT_PROXY65: 7777
2931

@@ -102,6 +104,8 @@ listen:
102104
transport: udp
103105
module: ejabberd_stun
104106
use_turn: true
107+
turn_min_port: PORT_TURN_MIN
108+
turn_max_port: PORT_TURN_MAX
105109
## The server's public IPv4 address:
106110
# turn_ipv4_address: "203.0.113.3"
107111
## The server's public IPv6 address:

0 commit comments

Comments
 (0)