diff --git a/Dockerfile b/Dockerfile index c52587a..98844ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docs/docker-compose.yml b/docs/docker-compose.yml index fcc2c81..2d1fbb9 100644 --- a/docs/docker-compose.yml +++ b/docs/docker-compose.yml @@ -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: diff --git a/docs/ghostream.example.yml b/docs/ghostream.example.yml index c516dce..28c7731 100644 --- a/docs/ghostream.example.yml +++ b/docs/ghostream.example.yml @@ -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 # diff --git a/internal/config/config.go b/internal/config/config.go index 2a94292..ea3ec88 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -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"}, },