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