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 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 COPY --from=build_base /code/out/ghostream /app/ghostream
WORKDIR /app WORKDIR /app
# 2112 for monitoring, 8023 for Telnet, 8080 for Web, 9710 for SRT, 10000-10005 (UDP) for WebRTC # 2112 for monitoring, 8023 for Telnet, 8080 for Web, 9710 for SRT, 10000-11000 (UDP) for WebRTC
EXPOSE 2112 8023 8080 9710/udp 10000-10005/udp EXPOSE 2112 8023 8080 9710/udp 10000-11000/udp
CMD ["/app/ghostream"] CMD ["/app/ghostream"]

View File

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

View File

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

View File

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