summaryrefslogtreecommitdiff
path: root/templates/cgitrc.epp
blob: 94342134b6dd76d6ca09c0f2c17c744a2d2e790d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# cgit config
# see cgitrc(5) for details
#
# FILE MANAGED BY PUPPET
#

# css=/cgit.css
logo=/logo/logo.png
# favicon=/favicon.ico

enable-index-owner=1

root-title=<%= $cgit::root_title %>
#root-desc=Tändes endast mot lådans plån
root-desc=<%= $cgit::root_desc %>
# Also causes the `about' page to exist
# /usr/lib/cgit/readme
root-readme=<%= $cgit::root %>/root_readme

#source-filter=/srv/filters/dispatch.sh

# about-filter=/usr/local/lib/cgit/filters/hugo-pre.sh
# auth-filter=lua:/usr/local/lib/cgit/filters/hugo-authentication.lua
# source-filter=/usr/local/lib/cgit/filters/hugo-highlighting.sh
about-filter=<%= $cgit::filterpath %>/<%= $cgit::about_filter %>
auth-filter=<% if stdlib::extname($cgit::auth_filter) == '.lua' { 
	-%>lua:<% 
	} -%><%= $cgit::filterpath %>/<%= $cgit::auth_filter %>
source-filter=<%= $cgit::filterpath %>/<%= $cgit::source_filter %>

enable-follow-links=1
enable-subject-links=1 # show commit summary for parrent

#side-by-side-diffs=1
enable-commit-graph=1
enable-index-links=1
enable-remote-branches=1
local-time=1

case-sensative-sort=0

max-repo-count=100

enable-http-clone=1
clone-url=<%= $cgit::clone_url.join(' ') %>

readme=:README
readme=:README.md
readme=:README.txt
readme=:readme
readme=:readme.md
readme=:readme.txt

virtual-root=
remove-suffix=1
section-from-path=1
enable-git-config=1

# section=~/git
snapshots=tar.gz tar.xz 
scan-path=<%= $cgit::scan_path %>

#scan-path=/var/www/git/repositories/