aboutsummaryrefslogtreecommitdiff
path: root/cgit/cgitrc
diff options
context:
space:
mode:
Diffstat (limited to 'cgit/cgitrc')
-rw-r--r--cgit/cgitrc20
1 files changed, 15 insertions, 5 deletions
diff --git a/cgit/cgitrc b/cgit/cgitrc
index 7c73534..468e859 100644
--- a/cgit/cgitrc
+++ b/cgit/cgitrc
@@ -57,28 +57,38 @@ readme=:install
# Cache
cache-root=/var/cache/cgit
-cache-size=0
+cache-size=3000
+cache-root-ttl=3
+cache-about-ttl=5
+cache-dynamic-ttl=15
+cache-repo-ttl=10
+cache-static-ttl=30
-enable-index-links=0
+enable-index-links=1
enable-index-owner=0
enable-remote-branches=1
enable-log-filecount=1
-enable-log-linecount=1
+enable-log-linecount=0 # This shit is slow
enable-tree-linenumbers=1
enable-git-config=1
enable-commit-graph=1
enable-follow-links=1
enable-http-clone=1
enable-html-serving=1
-snapshots=tar.xz zip
+enable-blame=1
+snapshots=tar.gz zip
remove-suffix=1
repository-sort=age
+max-repo-count=50
+max-blob-size=512
+max-commit-count=20
+max-message-length=72
+
# side-by-side-diffs=1
robots=index, nofollow
virtual-root=/
section-from-path=0
-max-repo-count=50
# Scan path has to be last
scan-path=/srv/git