From d963753bfb4f694db942ec98cef676d6220d3069 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 14 Sep 2020 23:07:36 -0400 Subject: Fix up go git in Nginx --- entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 16ec682..bf09d91 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -94,10 +94,11 @@ http { } # Make go-get work + # Make the assumption that we're always running under default + # https. This may cause issues for strange setups. Don't do that. if (\$arg_go-get = 1) { return 200 '\\n'; - # content="\$host\$uri git \$scheme://\$host/cgi-bin/cgit.cgi\$uri.git">\\n'; + content="\$host\$uri git https://\$host\$uri">\\n'; } } } -- cgit v1.2.3