Last active
September 28, 2024 03:19
-
-
Save jonforums/9875290 to your computer and use it in GitHub Desktop.
ubuntu server, nginx, and cgit via fcgiwrap+spawn-fcgi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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