nginx: buscribe_api, like thrimshim, should be forwarded to

pull/414/head
Mike Lang 3 weeks ago
parent 1e7e400096
commit 9c6340a5e0

@ -19,8 +19,10 @@ LOCATIONS=$(
[ -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/
[ "$name" == "thrimshim" ] && generate_location /thrimshim "http://thrimshim:$port"
# thrimshim and buscribe-api take any calls to SERVICE/
if [ "$name" == "thrimshim" ] || [ "$name" == "buscribe_api" ]; then
generate_location "/$name" "http://$name:$port"
fi
# all services have metrics under /metrics/SERVICE, except for thrimebletrimmer
generate_location "/metrics/$name" "http://$name:$port/metrics"
done

Loading…
Cancel
Save