summaryrefslogtreecommitdiffabout
path: root/cgitrc
Unidiff
Diffstat (limited to 'cgitrc') (more/less context) (ignore whitespace changes)
-rw-r--r--cgitrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgitrc b/cgitrc
index e7e731c..f923cc4 100644
--- a/cgitrc
+++ b/cgitrc
@@ -6,91 +6,95 @@
6## Uncomment and set to 1 to deactivate caching of generated pages. Mostly 6## Uncomment and set to 1 to deactivate caching of generated pages. Mostly
7## usefull for testing. 7## usefull for testing.
8#nocache=0 8#nocache=0
9 9
10 10
11## Enable/disable snapshots by default. This can be overridden per repo 11## Enable/disable snapshots by default. This can be overridden per repo
12#snapshots=0 12#snapshots=0
13 13
14 14
15## Specify a root for virtual urls. This makes cgit generate urls like 15## Specify a root for virtual urls. This makes cgit generate urls like
16## 16##
17## http://localhost/git/repo/log/?id=master 17## http://localhost/git/repo/log/?id=master
18## 18##
19## instead of 19## instead of
20## 20##
21## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master 21## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master
22## 22##
23## For this to work with apache, rewrite rules must be added to httpd.conf, 23## For this to work with apache, rewrite rules must be added to httpd.conf,
24## possibly looking something like this: 24## possibly looking something like this:
25## 25##
26## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA] 26## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA]
27## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA] 27## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA]
28## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA] 28## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA]
29## 29##
30## This setting is disabled by default. 30## This setting is disabled by default.
31#virtual-root=/git 31#virtual-root=/git
32 32
33 33
34## Set the title printed on the root page 34## Set the title printed on the root page
35#root-title=Git repository browser 35#root-title=Git repository browser
36 36
37 37
38## Link to css file 38## Link to css file
39#css=/cgit/cgit.css 39#css=/cgit/cgit.css
40 40
41 41
42## Link to logo file 42## Link to logo file
43#logo=/cgit/git-logo.png 43#logo=/cgit/git-logo.png
44 44
45 45
46## Url loaded when clicking the logo 46## Url loaded when clicking the logo
47#logo-link=http://www.kernel.org/pub/software/scm/git/docs/ 47#logo-link=http://www.kernel.org/pub/software/scm/git/docs/
48 48
49 49
50## Url loaded when clicking a submodule link 50## Url loaded when clicking a submodule link
51#module-link=./?repo=%s&page=commit&id=%s 51#module-link=./?repo=%s&page=commit&id=%s
52 52
53 53
54## Number of chars shown of repo description (in repolist view)
55#max-repodesc-length=60
56
57
54## Number of chars shown of commit subject message (in log view) 58## Number of chars shown of commit subject message (in log view)
55#max-message-length=60 59#max-message-length=60
56 60
57 61
58## Number of commits per page in log view 62## Number of commits per page in log view
59#max-commit-count=50 63#max-commit-count=50
60 64
61 65
62## Root of cached output 66## Root of cached output
63#cache-root=/var/cache/cgit 67#cache-root=/var/cache/cgit
64 68
65 69
66## Include another config-file 70## Include another config-file
67#include=/var/cgit/repolist 71#include=/var/cgit/repolist
68 72
69## 73##
70## Time-To-Live settings: specifies how long (in minutes) different pages 74## Time-To-Live settings: specifies how long (in minutes) different pages
71## should be cached (0 for instant expiration, -1 for immortal pages) 75## should be cached (0 for instant expiration, -1 for immortal pages)
72## 76##
73 77
74## ttl for root page 78## ttl for root page
75#cache-root-ttl=5 79#cache-root-ttl=5
76 80
77## ttl for repo summary page 81## ttl for repo summary page
78#cache-repo-ttl=5 82#cache-repo-ttl=5
79 83
80## ttl for other dynamic pages 84## ttl for other dynamic pages
81#cache-dynamic-ttl=5 85#cache-dynamic-ttl=5
82 86
83## ttl for static pages (addressed by SHA-1) 87## ttl for static pages (addressed by SHA-1)
84#cache-static-ttl=-1 88#cache-static-ttl=-1
85 89
86 90
87 91
88## Example repository entry. Required values are repo.url and repo.path (each 92## Example repository entry. Required values are repo.url and repo.path (each
89## repository section must start with repo.url). 93## repository section must start with repo.url).
90#repo.url=cgit 94#repo.url=cgit
91#repo.name=cgit 95#repo.name=cgit
92#repo.desc=the caching cgi for git 96#repo.desc=the caching cgi for git
93#repo.path=/pub/git/cgit 97#repo.path=/pub/git/cgit
94#repo.owner=Lars Hjemli 98#repo.owner=Lars Hjemli
95 #repo.snapshots=1 # override a sitewide snapshot-setting 99 #repo.snapshots=1 # override a sitewide snapshot-setting
96 #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link 100 #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link