diff options
Diffstat (limited to 'SETUP.md')
-rw-r--r-- | SETUP.md | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/SETUP.md b/SETUP.md new file mode 100644 index 0000000..9f81afe --- /dev/null +++ b/SETUP.md @@ -0,0 +1,38 @@ +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 |