diff --git a/docker/start.sh b/docker/start.sh index 511e303..dacd232 100644 --- a/docker/start.sh +++ b/docker/start.sh @@ -16,15 +16,27 @@ if [ -z "$EXTERNAL_IP" ] || [ -z "$INTERNAL_IP" ]; then exit 1 fi +if [ -z "$COTURN_PORT" ]; then + echo "Error: COTURN_PORT must be set." + echo "Example: docker run -e COTURN_PORT=3478 crossdesk-server" + exit 1 +fi + +if [ -z "$MIN_PORT" ] || [ -z "$MAX_PORT" ]; then + echo "Error: MIN_PORT and MAX_PORT must be set." + echo "Example: docker run -e MIN_PORT=50000 -e MAX_PORT=60000 crossdesk-server" + exit 1 +fi + # generate coturn configuration file mkdir -p /etc/coturn cat > "$CONF_FILE" <