|
diff --git a/cgitrc b/cgitrc index f923cc4..eaa9ce3 100644 --- a/ cgitrc+++ b/ cgitrc |
|
@@ -1,38 +1,46 @@ |
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 | ## Enable/disable snapshots by default. This can be overridden per repo |
12 | #snapshots=0 |
12 | #snapshots=0 |
13 | |
13 | |
14 | |
14 | |
| |
15 | ## Enable/disable display of 'number of files changed' in log view |
| |
16 | #enable-log-filecount=0 |
| |
17 | |
| |
18 | |
| |
19 | ## Enable/disable display of 'number of lines changed' in log view |
| |
20 | #enable-log-linecount=0 |
| |
21 | |
| |
22 | |
15 | ## Specify a root for virtual urls. This makes cgit generate urls like |
23 | ## Specify a root for virtual urls. This makes cgit generate urls like |
16 | ## |
24 | ## |
17 | ## http://localhost/git/repo/log/?id=master |
25 | ## http://localhost/git/repo/log/?id=master |
18 | ## |
26 | ## |
19 | ## instead of |
27 | ## instead of |
20 | ## |
28 | ## |
21 | ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master |
29 | ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master |
22 | ## |
30 | ## |
23 | ## For this to work with apache, rewrite rules must be added to httpd.conf, |
31 | ## For this to work with apache, rewrite rules must be added to httpd.conf, |
24 | ## possibly looking something like this: |
32 | ## possibly looking something like this: |
25 | ## |
33 | ## |
26 | ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA] |
34 | ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA] |
27 | ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA] |
35 | ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA] |
28 | ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA] |
36 | ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA] |
29 | ## |
37 | ## |
30 | ## This setting is disabled by default. |
38 | ## This setting is disabled by default. |
31 | #virtual-root=/git |
39 | #virtual-root=/git |
32 | |
40 | |
33 | |
41 | |
34 | ## Set the title printed on the root page |
42 | ## Set the title printed on the root page |
35 | #root-title=Git repository browser |
43 | #root-title=Git repository browser |
36 | |
44 | |
37 | |
45 | |
38 | ## Link to css file |
46 | ## Link to css file |
@@ -76,25 +84,27 @@ |
76 | ## |
84 | ## |
77 | |
85 | |
78 | ## ttl for root page |
86 | ## ttl for root page |
79 | #cache-root-ttl=5 |
87 | #cache-root-ttl=5 |
80 | |
88 | |
81 | ## ttl for repo summary page |
89 | ## ttl for repo summary page |
82 | #cache-repo-ttl=5 |
90 | #cache-repo-ttl=5 |
83 | |
91 | |
84 | ## ttl for other dynamic pages |
92 | ## ttl for other dynamic pages |
85 | #cache-dynamic-ttl=5 |
93 | #cache-dynamic-ttl=5 |
86 | |
94 | |
87 | ## ttl for static pages (addressed by SHA-1) |
95 | ## ttl for static pages (addressed by SHA-1) |
88 | #cache-static-ttl=-1 |
96 | #cache-static-ttl=-1 |
89 | |
97 | |
90 | |
98 | |
91 | |
99 | |
92 | ## Example repository entry. Required values are repo.url and repo.path (each |
100 | ## Example repository entry. Required values are repo.url and repo.path (each |
93 | ## repository section must start with repo.url). |
101 | ## repository section must start with repo.url). |
94 | #repo.url=cgit |
102 | #repo.url=cgit |
95 | #repo.name=cgit |
103 | #repo.name=cgit |
96 | #repo.desc=the caching cgi for git |
104 | #repo.desc=the caching cgi for git |
97 | #repo.path=/pub/git/cgit |
105 | #repo.path=/pub/git/cgit |
98 | #repo.owner=Lars Hjemli |
106 | #repo.owner=Lars Hjemli |
99 | #repo.snapshots=1 # override a sitewide snapshot-setting |
107 | #repo.snapshots=1 # override a sitewide snapshot-setting |
| |
108 | #repo.enable-log-filecount=0 # override the default filecount setting |
| |
109 | #repo.enable-log-linecount=0 # override the default linecount setting |
100 | #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link |
110 | #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link |
|