Initial Commit
authorCian Bagshaw <cian@cianb.xyz>
Sun, 28 Aug 2022 17:05:20 +0000 (18:05 +0100)
committerCian Bagshaw <cian@cianb.xyz>
Sun, 28 Aug 2022 17:05:20 +0000 (18:05 +0100)
Added cgitrc

cgitrc [new file with mode: 0644]

diff --git a/cgitrc b/cgitrc
new file mode 100644 (file)
index 0000000..b880e38
--- /dev/null
+++ b/cgitrc
@@ -0,0 +1,53 @@
+# URL prefix
+virtual-root=/
+
+# homepage 
+root-title=Git Server
+root-desc=description goes here
+max-repodesc-length=80
+
+# remove ".git" suffix 
+remove-suffix=1
+
+# html
+#favicon=https://yoursite.com/favicon.png
+#logo=https://yoursite.com/logo.png
+head-include=/usr/share/cgit/head.html
+css=/style.css
+robots=index
+
+# log 
+enable-commit-graph=1
+enable-log-filecount=1
+enable-log-linecount=1
+
+# direct download
+snapshots=tar.bz2 zip
+
+# git clone
+#clone-prefix=git.yoursite.com
+enable-http-clone=1
+
+# readme/about files 
+readme=:README.md
+readme=:readme.md
+readme=:README.txt
+readme=:readme.txt
+readme=:README
+readme=:readme
+
+# mimetypes 
+mimetype.gif=image/gif
+mimetype.html=text/html
+mimetype.jpg=image/jpeg
+mimetype.jpeg=image/jpeg
+mimetype.pdf=application/pdf
+mimetype.png=image/png
+mimetype.svg=image/svg+xml
+
+# syntax highlighting 
+source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
+about-filter=/usr/lib/cgit/filters/about-formatting.sh
+
+# repository directory
+#scan-path=/path/to/repos