Setting up cgit with Caddy v2 (2022)
6 days ago
- #cgit
- #Caddy
- #FastCGI
- Set up cgit on git.sixfoisneuf.fr using Caddy as the web server.
- Installed cgit from Debian package repository, with configuration file at /etc/cgitrc.
- Configured cgit to point to Git repositories hosted on a Gitea instance.
- Installed fcgiwrapper to enable FastCGI support for Caddy, as Caddy does not support CGI by default.
- Created a systemd service for cgit wrapped by fcgiwrap, listening on port 8999.
- Configured Caddy to handle static content at /cgit-css/ and proxy other requests through FastCGI to the cgit CGI script.