diff options
| author | Arseney300 <Arseney300@gmail.com> | 2026-02-20 04:56:52 +0700 |
|---|---|---|
| committer | Arseney300 <Arseney300@gmail.com> | 2026-02-20 04:56:52 +0700 |
| commit | b68790d86a40294ba035b93e40b29f1a071359a1 (patch) | |
| tree | 8eccd2412be8c287bf5de1d835955b44e8515cab /git-server/cgit/entrypoint.sh | |
| parent | ee7d961c638c3baa0ba12b0451fe5104fecc95a9 (diff) | |
Add cgit web interface to git-server stack
Adds a lightweight cgit container (Alpine + fcgiwrap + nginx) that
auto-discovers bare repos via scan-path and serves them read-only.
Accessible at both cgit.swave.lol and swave.lol/cgit through the
main nginx reverse proxy.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'git-server/cgit/entrypoint.sh')
| -rw-r--r-- | git-server/cgit/entrypoint.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/git-server/cgit/entrypoint.sh b/git-server/cgit/entrypoint.sh new file mode 100644 index 0000000..652ba73 --- /dev/null +++ b/git-server/cgit/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Start fcgiwrap via spawn-fcgi on a unix socket +spawn-fcgi -s /var/run/fcgiwrap.socket -U nginx -G nginx -- /usr/bin/fcgiwrap + +# Start nginx in foreground +exec nginx |
