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