summaryrefslogtreecommitdiff
path: root/SETUP.md
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-08-13 19:21:14 +0200
committerJonas Smedegaard <dr@jones.dk>2020-08-13 19:21:14 +0200
commit95862f2b20c81294413824ec2dd00f9b17905994 (patch)
tree828217c395c60630070510ee247e323861260b86 /SETUP.md
initial commit
Diffstat (limited to 'SETUP.md')
-rw-r--r--SETUP.md38
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