]> git.cameronkatri.com Git - cgit.git/blob - cgitrc
Rewrite the makefile + gen-version.sh
[cgit.git] / cgitrc
1 ##
2 ## cgitrc: template for /etc/cgitrc
3 ##
4
5
6 ## Uncomment and set to 1 to deactivate caching of generated pages. Mostly
7 ## usefull for testing.
8 #nocache=0
9
10
11 ## Set allowed snapshot types by default. Can be overridden per repo
12 # can be any combination of zip/tar.gz/tar.bz2/tar
13 #snapshots=0
14
15
16 ## Enable/disable extra links to summary/log/tree per repo on index page
17 #enable-index-links=0
18
19
20 ## Enable/disable display of 'number of files changed' in log view
21 #enable-log-filecount=0
22
23
24 ## Enable/disable display of 'number of lines changed' in log view
25 #enable-log-linecount=0
26
27
28 ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum
29 ## number of commits that should be displayed
30 #summary-log=0
31
32
33 ## Specify a root for virtual urls. This makes cgit generate urls like
34 ##
35 ## http://localhost/git/repo/log/?id=master
36 ##
37 ## instead of
38 ##
39 ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master
40 ##
41 ## For this to work with apache, rewrite rules must be added to httpd.conf,
42 ## possibly looking something like this:
43 ##
44 ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA]
45 ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA]
46 ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA]
47 ##
48 ## This setting is disabled by default.
49 #virtual-root=/git
50
51
52 ## Set the title printed on the root page
53 #root-title=Git repository browser
54
55
56 ## Link to css file
57 #css=/cgit/cgit.css
58
59
60 ## Link to logo file
61 #logo=/cgit/git-logo.png
62
63
64 ## Url loaded when clicking the logo
65 #logo-link=http://www.kernel.org/pub/software/scm/git/docs/
66
67
68 ## Url loaded when clicking a submodule link
69 #module-link=./?repo=%s&page=commit&id=%s
70
71
72 ## Number of chars shown of repo description (in repolist view)
73 #max-repodesc-length=60
74
75
76 ## Number of chars shown of commit subject message (in log view)
77 #max-message-length=60
78
79
80 ## Number of commits per page in log view
81 #max-commit-count=50
82
83
84 ## Root of cached output
85 #cache-root=/var/cache/cgit
86
87
88 ## Include another config-file
89 #include=/var/cgit/repolist
90
91 ##
92 ## Time-To-Live settings: specifies how long (in minutes) different pages
93 ## should be cached (0 for instant expiration, -1 for immortal pages)
94 ##
95
96 ## ttl for root page
97 #cache-root-ttl=5
98
99 ## ttl for repo summary page
100 #cache-repo-ttl=5
101
102 ## ttl for other dynamic pages
103 #cache-dynamic-ttl=5
104
105 ## ttl for static pages (addressed by SHA-1)
106 #cache-static-ttl=-1
107
108
109
110 ## Example repository entry. Required values are repo.url and repo.path (each
111 ## repository section must start with repo.url).
112 #repo.url=cgit
113 #repo.name=cgit
114 #repo.desc=the caching cgi for git
115 #repo.path=/pub/git/cgit
116 #repo.owner=Lars Hjemli
117 #repo.snapshots=tar.bz2 # override a sitewide snapshot-setting
118 #repo.enable-log-filecount=0 # override the default filecount setting
119 #repo.enable-log-linecount=0 # override the default linecount setting
120 #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link
121 #repo.readme=info/web/readme # specify a file to include on summary page