Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
name Gitalist
<Model::CollectionOfRepos>
#git /path/to/git
# Configure this to where your repositories are.
repo_dir /home/git/repositories/
</Model::CollectionOfRepos>
sitename "Gitalist"
<paging>
log = 20
summary = 17
</paging>
# Support gitweb patches action.
<patches>
max = 16
</patches>
[program:gitalist]
command=/usr/local/bin/gitalist_fastcgi.pl --listen /var/run/gitalist/gitalist.sock --nproc 2 --pidfile /var/run/gitalist/gitalist.pid
user=git
autostart=true
autorestart=true
redirect_stderr=true
server {
server_name www.example.com;
rewrite ^/(.*) http://git.example.com/$1 permanent;
}
server {
server_name example.com;
access_log /var/log/gitalist/access.log combined;
error_log /var/log/gitalist/error.log;
location / {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/gitalist/gitalist.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment