From 4bd20c0984b3a38283430ab355eef5dcfcea91dd Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 9 Jun 2022 17:19:17 -0500 Subject: Apply my personal configurations to cgit For easy deployment. Actual code changes will go in master for sharing, but then will be merged here. --- cgitrc | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 cgitrc (limited to 'cgitrc') diff --git a/cgitrc b/cgitrc new file mode 100644 index 0000000..f58dcb7 --- /dev/null +++ b/cgitrc @@ -0,0 +1,45 @@ +# /etc/cgitrc -*- conf -*- + +root-title=git.acdw.net +root-desc=personal projects of acdw + +# Paths to static resource in Nginx root +css=/cgit.css +#logo=/cgit.png +logo=/avatar.png + +clone-url=git://$HTTP_HOST/$CGIT_REPO_URL +snapshots=tar.gz zip + +enable-commit-graph=1 +repository-sort=age +branch-sort=age + +max-repodesc-length=100 + +section-from-path=1 +max-repo-count=100 + +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 + +# enable git config +enable-git-config=1 +# remove .git from URLs and repo list +remove-suffix=1 +# Root for all cgit links +virtual-root=/ + +# READMEs +readme=:README.md +readme=:readme.txt +readme=:README +about-filter=/usr/bin/cgit-about-filter.sh + +# Folder with all my repos +scan-path=/git/ -- cgit 1.4.1-21-gabe81