diff options
Diffstat (limited to 'templates/cgitrc.erb')
| -rw-r--r-- | templates/cgitrc.erb | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/templates/cgitrc.erb b/templates/cgitrc.erb index fb97e32..e925f86 100644 --- a/templates/cgitrc.erb +++ b/templates/cgitrc.erb @@ -1,4 +1,3 @@ -# # cgit config # see cgitrc(5) for details @@ -13,17 +12,25 @@ root-desc=<%= @root_desc %> clone-url=<%= @clone_url %> snapshots=tar.gz tar.bz2 +# caching +cache-about-ttl=<%= @cache_about_ttl %> +cache-dynamic-ttl=<%= @cache_dynamic_ttl %> +cache-repo-ttl=<%= @cache_repo_ttl %> +cache-root=<%= @cache_root %> +cache-root-ttl=<%= @cache_root_ttl %> +cache-scanrc-ttl=<%= @cache_scanrc_ttl %> +cache-size=<%= @cache_size %> +cache-snapshot-ttl=<%= @cache_snapshot_ttl %> +cache-static-ttl=<%= @cache_static_ttl %> + # switches -nocache=1 -cache-size=0 -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 @@ -73,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/ |
