summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgit/Makefile2
-rw-r--r--cgit/cgitrc26
2 files changed, 28 insertions, 0 deletions
diff --git a/cgit/Makefile b/cgit/Makefile
new file mode 100644
index 0000000..5bdbf3a
--- /dev/null
+++ b/cgit/Makefile
@@ -0,0 +1,2 @@
+install: cgitrc
+ cp @^ /usr/local/etc/cgitrc
diff --git a/cgit/cgitrc b/cgit/cgitrc
new file mode 100644
index 0000000..0d7ab84
--- /dev/null
+++ b/cgit/cgitrc
@@ -0,0 +1,26 @@
+root-title=Henry's git
+root-desc="I have seen the gates of Oblivion, beyond which no waking eye may see."
+css=/cgit.css
+logo=/profile.png
+
+# No favicon
+favicon=data:,
+
+enable-index-owner=0
+enable-git-config=1
+enable-index-links=1
+remove-suffix=1
+
+clone-url=https://git.hwebs.info/$CGIT_REPO_URL
+
+# Syntax highlighting
+source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.py
+
+# Render READMEs
+readme=:README.md
+readme=:README
+about-filter=/usr/local/lib/cgit/filters/about-formatting.sh
+
+# auto-discover any bare repo under this path
+scan-path=/usr/local/git/public
+