diff --git a/nginx/generate-config b/nginx/generate-config index 17f846d..9726f78 100755 --- a/nginx/generate-config +++ b/nginx/generate-config @@ -9,7 +9,7 @@ generate_location() { } LOCATIONS=$( - echo "$SERVICES" | while read name port; do + [ -n "$SERVICES" ] && echo "$SERVICES" | while read name port; do # restreamer is the catch-all [ "$name" == "restreamer" ] && generate_location / "http://restreamer:$port" # thrimshim takes any calls to thrimshim/