Instantly share code, notes, and snippets.

Embed
What would you like to do?
fcgiwrap setup for gitweb + gitolite
; Spawn fcgiwrap as the user owning the git repositories, with a socket writeable by nginx
[fcgi-program:fcgiwrap_gitolite]
command = /usr/sbin/fcgiwrap
user = gitolite
socket = unix:///var/run/supervisor/%(program_name)s.sock
socket_owner = gitolite:nginx
socket_mode = 0770
# nginx configuration for gitweb
server {
listen 80;
server_name git.hexi.co;
location / {
root /usr/share/gitweb;
index index.cgi;
include fastcgi_params;
gzip off;
if ($uri ~ "/index.cgi") {
fastcgi_pass unix:/var/run/supervisor/fcgiwrap_gitolite.sock;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment