From de8d06726cae205ead43f8b1ac07ecc59a07363b Mon Sep 17 00:00:00 2001 From: RATDAD Date: Fri, 12 Dec 2025 01:49:48 -0500 Subject: Edited README, omitted /cgit.cgi/ from urls, added HTTP Basic Auth --- etc/cgitrc | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'etc/cgitrc') diff --git a/etc/cgitrc b/etc/cgitrc index dad2e2a..6d04348 100644 --- a/etc/cgitrc +++ b/etc/cgitrc @@ -1,29 +1,38 @@ # +# # cgit Runtime Configuration # see cgitrc(5) for details # -# General options -root-title=Git Repository Browser -root-desc=a fast webinterface for the git dscm +# Global Settings robots=noindex, nofollow -scan-path=/srv/git +snapshots=tar.gz tar.bz2 zip source-filter=/opt/highlight.sh # -# Site options +# Site Settings enable-index-links=1 enable-remote-branches=1 enable-log-filecount=1 enable-log-linecount=1 enable-git-config=1 -snapshots=tar.gz tar.bz2 zip # -# Cache +# Cache Settings cache-root=/var/cache/cgit cache-size=1000 +# +# List of common 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 + # # Search for these files in the root of the default branch of repos. # This will determine the "about" page for the repo. @@ -55,3 +64,7 @@ readme=:INSTALL.txt readme=:install.txt readme=:INSTALL readme=:install + +# NOTE: According to the cgit mailing list, these options should go last. +virtual-root=/ +scan-path=/srv/git \ No newline at end of file -- cgit v1.2.3-70-g09d2