blob: 9f81afe55204b2466773308e36d9dcc331c4f857 (
plain)
NB! Some system-specific strings are used
which you may need to adapt depending on your local setup:
featureroot: /usr/local/share/feature/source-hosting
githost: {{githost}}
Prerequisites
Install needed packages:
sudo apt install git git-daemon-sysvinit cgit cmark highlight
Configure git access
FIXME
Configure web access
Adapt the file /etc/default/git-daemon :
GIT_DAEMON_ENABLE=true
GIT_DAEMON_USER=gitdaemon
GIT_DAEMON_BASE_PATH=/srv/git
GIT_DAEMON_DIRECTORY=/srv/git/{{githost}}
# Additional options that are passed to the Daemon.
GIT_DAEMON_OPTIONS="--interpolated-path=/srv/git/%H/%D --user-path=public_git --export-all"
Adapt the file /etc/cgitrc :
css=/cgit-css/cgit.css
logo=/cgit-css/cgit.png
include=/usr/local/share/feature/source-hosting/source-hosting/etc/cgitrc
|