summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/cgitrc11
1 files changed, 8 insertions, 3 deletions
diff --git a/etc/cgitrc b/etc/cgitrc
index 466a374b..d9362b44 100644
--- a/etc/cgitrc
+++ b/etc/cgitrc
@@ -4,15 +4,20 @@
cache-size=1000
enable-index-owner=0
-enable-blame=1
mimetype-file=/etc/mime.types
# https://stackoverflow.com/questions/16182421/cgit-and-nginx-url-rewrite
virtual-root=/
+enable-follow-links=1
+
+# useful but may makes page generation slow, maybe disable
+# can see the log via `journalctl -b -u uwsgi@cgit` and search less pager with sth. like `/[0-9]{3} msecs`
+enable-blame=1
enable-log-filecount=1
enable-log-linecount=1
-# kinda useful for showing branch merge, ex: https://git.flylightning.xyz/dwm_fly/log/?h=fly
+# showing branch merge, ex: https://git.flylightning.xyz/dwm_fly/log/?h=fly
enable-commit-graph=1
-enable-follow-links=1
+
+# not very useful, maybe disable
enable-subject-links=1
# `man cgitrc` uses $CGIT_REPO_URL instead of $CGIT_REPO_NAME, I guess maybe because repo name can be different from repo url?