summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-02-28 10:19:46 +0000
committerXiao Pan <gky44px1999@gmail.com>2024-02-28 10:19:46 +0000
commitc7f738df3852d83efbdde120db3384613c9c2d6b (patch)
tree32149c7fc9cb72abe66ad347ff41b44641fe6c8e /etc
parent3e0b2c8774a613a5599728be10c8d8681faf4b5e (diff)
update
Diffstat (limited to 'etc')
-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?