diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-09-14 23:07:36 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-09-14 23:07:36 -0400 |
| commit | d963753bfb4f694db942ec98cef676d6220d3069 (patch) | |
| tree | 24a9ae5693f3836d9a89f6b82d8b75f2b46f65ff | |
| parent | c0f5842a74acd5d88a04e3b1d37b368025895444 (diff) | |
| download | alpine-cgit-d963753bfb4f694db942ec98cef676d6220d3069.tar.gz alpine-cgit-d963753bfb4f694db942ec98cef676d6220d3069.tar.xz | |
Fix up go git in Nginx
| -rwxr-xr-x | entrypoint.sh | 5 |
1 files 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 '<meta name="go-import" - content="\$host\$uri git \$scheme://\$host\$uri.git">\\n'; - # content="\$host\$uri git \$scheme://\$host/cgi-bin/cgit.cgi\$uri.git">\\n'; + content="\$host\$uri git https://\$host\$uri">\\n'; } } } |
