summaryrefslogtreecommitdiffabout
path: root/cgitrc
Unidiff
Diffstat (limited to 'cgitrc') (more/less context) (ignore whitespace changes)
-rw-r--r--cgitrc13
1 files changed, 9 insertions, 4 deletions
diff --git a/cgitrc b/cgitrc
index 7e7fae5..da3d138 100644
--- a/cgitrc
+++ b/cgitrc
@@ -1,63 +1,68 @@
1## 1##
2## cgitrc: template for /etc/cgitrc 2## cgitrc: template for /etc/cgitrc
3## 3##
4 4
5 5
6## root folder for git repos
7#root=/usr/src/git
8
9
10## base for virtual urls. If specified, rewrite rules must be added to 6## base for virtual urls. If specified, rewrite rules must be added to
11## httpd.conf. Possible rules for /git/ when cgit.cgi is accessed as /cgit.cgi: 7## httpd.conf. Possible rules for /git/ when cgit.cgi is accessed as /cgit.cgi:
12## 8##
13## RewriteRule ^/git/$ /cgit.cgi [L,QSA] 9## RewriteRule ^/git/$ /cgit.cgi [L,QSA]
14## RewriteRule ^/git/([^/]+)/$ /cgit.cgi?r=$1 [L,QSA] 10## RewriteRule ^/git/([^/]+)/$ /cgit.cgi?r=$1 [L,QSA]
15## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit.cgi?r=$1&p=$2 [L,QSA] 11## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit.cgi?r=$1&p=$2 [L,QSA]
16## 12##
17#virtual-root=/git 13#virtual-root=/git
18 14
19 15
20## page title for the root page (repo listing) 16## page title for the root page (repo listing)
21#root-title=Git repository browser 17#root-title=Git repository browser
22 18
23 19
24## link to css file 20## link to css file
25#css=/cgit.css 21#css=/cgit.css
26 22
27 23
28## link to logo file 24## link to logo file
29#logo=/git-logo.png 25#logo=/git-logo.png
30 26
31 27
32## url loaded when clicking the logo 28## url loaded when clicking the logo
33#logo-link=http://www.kernel.org/pub/software/scm/git/docs/ 29#logo-link=http://www.kernel.org/pub/software/scm/git/docs/
34 30
35 31
36## set number of initial chars to show of commit subject message in log views 32## set number of initial chars to show of commit subject message in log views
37#max-message-length=60 33#max-message-length=60
38 34
39 35
40## Set to 1 to deactivate caching of generated pages 36## Set to 1 to deactivate caching of generated pages
41#nocache=0 37#nocache=0
42 38
43 39
44## root path for cached output 40## root path for cached output
45#cache-root=/var/cache/cgit 41#cache-root=/var/cache/cgit
46 42
47 43
48## 44##
49## Time-To-Live settings: specify how long (in minutes) different pages should 45## Time-To-Live settings: specify how long (in minutes) different pages should
50## be cached. Specify 0 for instant expiration and -1 for immortal pages 46## be cached. Specify 0 for instant expiration and -1 for immortal pages
51## 47##
52 48
53## ttl for root page (repo listing) 49## ttl for root page (repo listing)
54#cache-root-ttl=5 50#cache-root-ttl=5
55 51
56## ttl for repo summary page 52## ttl for repo summary page
57#cache-repo-ttl=5 53#cache-repo-ttl=5
58 54
59## ttl for other dynamic pages 55## ttl for other dynamic pages
60#cache-dynamic-ttl=5 56#cache-dynamic-ttl=5
61 57
62## ttl for static pages (addressed by SHA-1) 58## ttl for static pages (addressed by SHA-1)
63#cache-static-ttl=-1 59#cache-static-ttl=-1
60
61
62
63## Example repository entry
64#repo.url=cgit
65#repo.name=cgit
66#repo.desc=the caching cgi for git
67#repo.path=/pub/git/cgit
68#repo.owner=Lars Hjemli