nginx: Nicer formatting for thrimbletrimmer part of config

pull/116/head
Mike Lang 5 years ago
parent 60c6145836
commit 15cf65c926

@ -17,7 +17,9 @@ LOCATIONS=$(
# 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
[ -n "$THRIMBLETRIMMER" ] && echo -e "\t\tlocation = / { return 301 /thrimbletrimmer/dashboard.html; }\n\t\tlocation /thrimbletrimmer { }" [ -n "$THRIMBLETRIMMER" ] &&
echo -e "\t\tlocation = / { return 301 /thrimbletrimmer/dashboard.html; }" &&
echo -e "\t\tlocation /thrimbletrimmer { }"
) )
cat > /etc/nginx/nginx.conf <<EOF cat > /etc/nginx/nginx.conf <<EOF

Loading…
Cancel
Save