5 UDP ports are not enough

This commit is contained in:
Yohann D'ANELLO 2020-11-07 15:00:06 +01:00
parent 8eea7d6e4f
commit 59c47ca3e0
4 changed files with 5 additions and 5 deletions

View File

@ -12,6 +12,6 @@ FROM alpine:3.12
RUN apk add --no-cache -X https://dl-cdn.alpinelinux.org/alpine/edge/community/ ffmpeg libsrt
COPY --from=build_base /code/out/ghostream /app/ghostream
WORKDIR /app
# 2112 for monitoring, 8023 for Telnet, 8080 for Web, 9710 for SRT, 10000-10005 (UDP) for WebRTC
EXPOSE 2112 8023 8080 9710/udp 10000-10005/udp
# 2112 for monitoring, 8023 for Telnet, 8080 for Web, 9710 for SRT, 10000-11000 (UDP) for WebRTC
EXPOSE 2112 8023 8080 9710/udp 10000-11000/udp
CMD ["/app/ghostream"]

View File

@ -30,7 +30,7 @@ services:
restart: always
ports:
- 9710:9710/udp
- 10000-10005:10000-10005/udp
- 10000-11000:10000-11000/udp
volumes:
- ./ghostream_data:/etc/ghostream:ro
labels:

View File

@ -170,7 +170,7 @@ webrtc:
# This range must be opened in your firewall.
#
#minPortUDP: 10000
#maxPortUDP: 10005
#maxPortUDP: 11000
# STUN servers, you should host your own Coturn instance
#

View File

@ -78,7 +78,7 @@ func New() *Config {
},
WebRTC: webrtc.Options{
Enabled: true,
MaxPortUDP: 10005,
MaxPortUDP: 11000,
MinPortUDP: 10000,
STUNServers: []string{"stun:stun.l.google.com:19302"},
},