From b8aa50ce2384c1278f12970ec1ad5902e3db3d5a Mon Sep 17 00:00:00 2001 From: Cian Bagshaw Date: Sun, 28 Aug 2022 18:05:20 +0100 Subject: [PATCH] Initial Commit Added cgitrc --- cgitrc | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 cgitrc diff --git a/cgitrc b/cgitrc new file mode 100644 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 -- 2.20.1