summaryrefslogtreecommitdiff
path: root/etc/cgitrc
diff options
context:
space:
mode:
authorRATDAD <lambda@disroot.org>2025-12-12 01:49:48 -0500
committerRATDAD <lambda@disroot.org>2025-12-12 01:49:48 -0500
commitde8d06726cae205ead43f8b1ac07ecc59a07363b (patch)
tree7b7cf48605040f0f07c618c2b78d7aad927249b6 /etc/cgitrc
parent0c7bf0252aa5b9a2c3a3d95ce84370a3d67cb62b (diff)
downloadcgit-docker-de8d06726cae205ead43f8b1ac07ecc59a07363b.tar.gz
cgit-docker-de8d06726cae205ead43f8b1ac07ecc59a07363b.tar.bz2
cgit-docker-de8d06726cae205ead43f8b1ac07ecc59a07363b.zip
Edited README, omitted /cgit.cgi/ from urls, added HTTP Basic Auth
Diffstat (limited to 'etc/cgitrc')
-rw-r--r--etc/cgitrc27
1 files changed, 20 insertions, 7 deletions
diff --git a/etc/cgitrc b/etc/cgitrc
index dad2e2a..6d04348 100644
--- a/etc/cgitrc
+++ b/etc/cgitrc
@@ -1,30 +1,39 @@
#
+#
# 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.
readme=:README.md
@@ -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