From 15cf65c92636d78b1b98f895d6c61643cc704673 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sat, 26 Oct 2019 01:26:56 -0700 Subject: [PATCH] nginx: Nicer formatting for thrimbletrimmer part of config --- nginx/generate-config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx/generate-config b/nginx/generate-config index 9726f78..f03f7e1 100755 --- a/nginx/generate-config +++ b/nginx/generate-config @@ -17,7 +17,9 @@ LOCATIONS=$( # all services have metrics under /metrics/SERVICE, except for thrimebletrimmer generate_location "/metrics/$name" "http://$name:$port/metrics" 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 <