aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2025-09-07 10:38:10 -0300
committerSilvio Rhatto <rhatto@riseup.net>2025-09-07 10:38:10 -0300
commit13274ea8cd9e2512123b8f0fa93a5ea5135a069d (patch)
tree73ec0fe4b436663d0a45431e460154f2bd63ec5f /templates
parentacfb0d5bf9d288d15154ae9253d50d731e950d0a (diff)
downloadpuppet-git-13274ea8cd9e2512123b8f0fa93a5ea5135a069d.tar.gz
puppet-git-13274ea8cd9e2512123b8f0fa93a5ea5135a069d.tar.bz2
Feat: parametrize caching
Diffstat (limited to 'templates')
-rw-r--r--templates/cgitrc.erb12
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/cgitrc.erb b/templates/cgitrc.erb
index fb97e32..8917fb9 100644
--- a/templates/cgitrc.erb
+++ b/templates/cgitrc.erb
@@ -1,4 +1,3 @@
-#
# cgit config
# see cgitrc(5) for details
@@ -13,9 +12,16 @@ root-desc=<%= @root_desc %>
clone-url=<%= @clone_url %>
snapshots=tar.gz tar.bz2
+# caching
+cache=<% @cache %>
+cache-size=<% @cache_size %>
+cache-about-ttl=<% @cache_about_ttl %>
+cache-dynamic-ttl=<% @cache_dynamic_ttl %>
+cache-static-ttl=<% @cache_static_ttl %>
+cache-root-ttl=<% @cache_root_ttl %>
+cache-repo-ttl=<% @cache_repo_ttl %>
+
# switches
-nocache=1
-cache-size=0
enable-http-clone=1
enable-index-links=1
enable-http-clone=1