|
|
@ -19,8 +19,10 @@ LOCATIONS=$(
|
|
|
|
[ -n "$SERVICES" ] && echo "$SERVICES" | while read name port; do
|
|
|
|
[ -n "$SERVICES" ] && echo "$SERVICES" | while read name port; do
|
|
|
|
# restreamer is the catch-all
|
|
|
|
# restreamer is the catch-all
|
|
|
|
[ "$name" == "restreamer" ] && generate_location / "http://restreamer:$port"
|
|
|
|
[ "$name" == "restreamer" ] && generate_location / "http://restreamer:$port"
|
|
|
|
# thrimshim takes any calls to thrimshim/
|
|
|
|
# thrimshim and buscribe-api take any calls to SERVICE/
|
|
|
|
[ "$name" == "thrimshim" ] && generate_location /thrimshim "http://thrimshim:$port"
|
|
|
|
if [ "$name" == "thrimshim" ] || [ "$name" == "buscribe_api" ]; then
|
|
|
|
|
|
|
|
generate_location "/$name" "http://$name:$port"
|
|
|
|
|
|
|
|
fi
|
|
|
|
# all services have metrics under /metrics/SERVICE, except for thrimebletrimmer
|
|
|
|
# all services have metrics under /metrics/SERVICE, except for thrimebletrimmer
|
|
|
|
generate_location "/metrics/$name" "http://$name:$port/metrics"
|
|
|
|
generate_location "/metrics/$name" "http://$name:$port/metrics"
|
|
|
|
done
|
|
|
|
done
|
|
|
|