aboutsummaryrefslogtreecommitdiff
path: root/templates/cgitrc.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2025-09-08 20:37:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2025-09-08 20:37:00 -0300
commit80c7666d31908044d1804f660623131657653e98 (patch)
tree97cc40d3542f3e293be25e4bf94b097515e3eda2 /templates/cgitrc.erb
parent2910ac3a5e25fa2e90fdd43283f0a56e8b23eaa4 (diff)
downloadpuppet-git-master.tar.gz
puppet-git-master.tar.bz2
Feat: parametrize additional optionsHEADmaster
Diffstat (limited to 'templates/cgitrc.erb')
-rw-r--r--templates/cgitrc.erb15
1 files changed, 7 insertions, 8 deletions
diff --git a/templates/cgitrc.erb b/templates/cgitrc.erb
index 0f06680..e925f86 100644
--- a/templates/cgitrc.erb
+++ b/templates/cgitrc.erb
@@ -24,14 +24,13 @@ cache-snapshot-ttl=<%= @cache_snapshot_ttl %>
cache-static-ttl=<%= @cache_static_ttl %>
# switches
-enable-http-clone=1
-enable-index-links=1
-enable-http-clone=1
-enable-git-clone=1
+enable-git-clone=<%= @enable_git_clone %>
+enable-http-clone=<%= @enable_http_clone %>
+enable-index-links=<%= @enable_index_links %>
# filters
-source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
-about-filter=/usr/lib/cgit/filters/about-formatting.sh
+source-filter=<%= @source_filter %>
+about-filter=<%= @about_filter %>
# readme files
readme=:README.md
@@ -81,7 +80,7 @@ mimetype.png=image/png
mimetype.svg=image/svg+xml
# projects
-enable-git-config=1
-remove-suffix=1
+enable-git-config=<%= @enable_git_config %>
+remove-suffix=<%= @remove_suffix %>
project-list=/var/git/projects.list
scan-path=/var/git/repositories/