Skip to content

Instantly share code, notes, and snippets.

@jonforums
Last active May 31, 2019 06:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonforums/9875290 to your computer and use it in GitHub Desktop.
Save jonforums/9875290 to your computer and use it in GitHub Desktop.
ubuntu server, nginx, and cgit via fcgiwrap+spawn-fcgi
# install nginx via your favorite method
...
# ensure primary nginx config file `/etc/nginx/nginx.conf` contains the following within
# the `http` block so that symlinked config from /etc/nginx/sites-available/* are included
include /etc/nginx/sites-enabled/*;
# install deps and build fcgiwrap
sudo aptitude install spawn-fcgi libfcgi-dev
curl -L -o fcgiwrap-1.1.0.tar.gz http://github.com/gnosek/fcgiwrap/archive/1.1.0.tar.gz
tar xzf fcgiwrap-1.1.0.tar.gz && cd fcgiwrap-1.1.0
autoreconf -i && ./configure && make
sudo cp -i fcgiwrap /usr/local/sbin
# download and build cgit
curl -L -O http://git.zx2c4.com/cgit/snapshot/cgit-0.10.1.tar.xz
tar xJf cgit-0.10.1.tar.xz && cd cgit-0.10.1
vim cgit.conf
# add the following lines to cgit.conf
GIT_VER = 1.9.1
GIT_URL = https://github.com/git/git/archive/v$(GIT_VER).tar.gz
make get-git
make && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment