From 6ef27fe75763b6d499605a15c689e6d7b1e2b2c6 Mon Sep 17 00:00:00 2001 From: ekimekim Date: Sat, 26 Oct 2019 03:07:28 -0500 Subject: [PATCH] nginx: Always use relative paths So that using non-standard ports, etc. doesn't break things --- nginx/generate-config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx/generate-config b/nginx/generate-config index 4300ea1..17f846d 100755 --- a/nginx/generate-config +++ b/nginx/generate-config @@ -17,7 +17,7 @@ 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 \$scheme://\$host/thrimbletrimmer/dashboard.html; }\n\t\tlocation /thrimbletrimmer { }" + [ -n "$THRIMBLETRIMMER" ] && echo -e "\t\tlocation = / { return 301 /thrimbletrimmer/dashboard.html; }\n\t\tlocation /thrimbletrimmer { }" ) cat > /etc/nginx/nginx.conf <