Cgit: Difference between revisions
(→cgit) |
|||
Line 50: | Line 50: | ||
And make sure you have at least the following lines: | And make sure you have at least the following lines: | ||
{{Cat|/etc/cgitrc|scan-path{{=}}/var/git/ | {{Cat|/etc/cgitrc|css{{=}}/cgit/cgit.css | ||
logo{{=}}/cgit/cgit.png | |||
scan-path{{=}}/var/git/ | |||
enable-git-config{{=}}1 | enable-git-config{{=}}1 | ||
}} | }} |
Revision as of 19:03, 26 August 2014
This material is work-in-progress ... Do not follow instructions here until this notice is removed. |
cgit is a CGI-application that was written in C and a web interface for git repositories provides.
Running instance: git.alpinelinux.org
Lighttpd
Make sure that Lighttpd is already installed.
rc-service lighttpd status
You will receive the lighttpd status as stopped or started if it is already installed. If you receive the answer: service `lighttpd' does not exist. issue the command below:
apk add lighttpd
Create a cgit.conf file into the lighttpd directory with the following content:
Contents of /etc/lighttpd/cgit.conf
Finally, add the following line to the lighttpd.conf file:
Contents of /etc/lighttpd/lighttpd.conf
cgit
Install cgit
apk add cgit git
Initialize a sample git repository
git init --bare /var/git/sample.git
Edit the /etc/cgitrc file:
vi /etc/cgitrc
And make sure you have at least the following lines:
Contents of /etc/cgitrc
If you want to group your repositories, add the every repository to a group.
Contents of /etc/cgitrc