|
diff --git a/cgitrc b/cgitrc index 2b09e01..6363c9c 100644 --- a/ cgitrc+++ b/ cgitrc |
|
@@ -1,177 +1,182 @@ |
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 | ## Set allowed snapshot types by default. 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 | # can be any combination of zip/tar.gz/tar.bz2/tar |
13 | #snapshots=0 |
13 | #snapshots=0 |
14 | |
14 | |
15 | |
15 | |
16 | ## 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 |
17 | #enable-index-links=0 |
17 | #enable-index-links=0 |
18 | |
18 | |
19 | |
19 | |
20 | ## Enable/disable display of 'number of files changed' in log view |
20 | ## Enable/disable display of 'number of files changed' in log view |
21 | #enable-log-filecount=0 |
21 | #enable-log-filecount=0 |
22 | |
22 | |
23 | |
23 | |
24 | ## Enable/disable display of 'number of lines changed' in log view |
24 | ## Enable/disable display of 'number of lines changed' in log view |
25 | #enable-log-linecount=0 |
25 | #enable-log-linecount=0 |
26 | |
26 | |
27 | |
27 | |
28 | ## 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 |
29 | ## number of commits that should be displayed |
29 | ## number of commits that should be displayed |
30 | #summary-log=0 |
30 | #summary-log=0 |
31 | |
31 | |
32 | |
32 | |
33 | ## Restrict the number of branches printed in summary view. Set to 0 to |
33 | ## Restrict the number of branches printed in summary view. Set to 0 to |
34 | ## print all branches. |
34 | ## print all branches. |
35 | #summary-branches=0 |
35 | #summary-branches=0 |
36 | |
36 | |
37 | |
37 | |
38 | ## Restrict the number of tags printed in summary view. Set to 0 to |
38 | ## Restrict the number of tags printed in summary view. Set to 0 to |
39 | ## print all tags. |
39 | ## print all tags. |
40 | #summary-tags=0 |
40 | #summary-tags=0 |
41 | |
41 | |
42 | |
42 | |
43 | ## The "Idle" column on the repository index page can read a timestamp |
43 | ## The "Idle" column on the repository index page can read a timestamp |
44 | ## from the specified agefile (if this file cannot be found, the mtime |
44 | ## from the specified agefile (if this file cannot be found, the mtime |
45 | ## of HEAD is used). |
45 | ## of HEAD is used). |
46 | ## The cgit repo on hjemli.net uses the the following command in it's |
46 | ## The cgit repo on hjemli.net uses the the following command in it's |
47 | ## post-receive hook to update the age-file: |
47 | ## post-receive hook to update the age-file: |
48 | ## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \ |
48 | ## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \ |
49 | ## --count=1 > $GIT_DIR/info/web/last-modifie |
49 | ## --count=1 > $GIT_DIR/info/web/last-modifie |
50 | ## |
50 | ## |
51 | #agefile=info/web/last-modified |
51 | #agefile=info/web/last-modified |
52 | |
52 | |
53 | |
53 | |
54 | ## Git detects renames, but with a limit on the number of files to |
54 | ## Git detects renames, but with a limit on the number of files to |
55 | ## consider. This option can be used to specify another limit (or -1 to |
55 | ## consider. This option can be used to specify another limit (or -1 to |
56 | ## use the default limit). |
56 | ## use the default limit). |
57 | ## |
57 | ## |
58 | #renamelimit=-1 |
58 | #renamelimit=-1 |
59 | |
59 | |
60 | |
60 | |
61 | ## Specify a root for virtual urls. This makes cgit generate urls like |
61 | ## Specify a root for virtual urls. This makes cgit generate urls like |
62 | ## |
62 | ## |
63 | ## http://localhost/git/repo/log/?h=branch |
63 | ## http://localhost/git/repo/log/?h=branch |
64 | ## |
64 | ## |
65 | ## instead of |
65 | ## instead of |
66 | ## |
66 | ## |
67 | ## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch |
67 | ## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch |
68 | ## |
68 | ## |
69 | ## For this to work with apache, a rewrite rule must be added to httpd.conf, |
69 | ## For this to work with apache, a rewrite rule must be added to httpd.conf, |
70 | ## possibly looking something like this: |
70 | ## possibly looking something like this: |
71 | ## |
71 | ## |
72 | ## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA] |
72 | ## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA] |
73 | ## |
73 | ## |
74 | ## For this to work with lighttpd, the rewrite rule should look more like this: |
74 | ## For this to work with lighttpd, the rewrite rule should look more like this: |
75 | ## |
75 | ## |
76 | ## url.rewrite = ( |
76 | ## url.rewrite = ( |
77 | ## "^/git/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2" |
77 | ## "^/git/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2" |
78 | ## ) |
78 | ## ) |
79 | ## |
79 | ## |
80 | ## This setting is disabled by default. |
80 | ## This setting is disabled by default. |
81 | #virtual-root=/git |
81 | #virtual-root=/git |
82 | |
82 | |
83 | |
83 | |
84 | ## Set the title printed on the root page |
84 | ## Set the title printed on the root page |
85 | #root-title=Git repository browser |
85 | #root-title=Git repository browser |
86 | |
86 | |
87 | |
87 | |
88 | ## If specified, the file at this path will be included as HTML in the index |
88 | ## If specified, the file at this path will be included as HTML in the |
89 | ## of repositories |
89 | ## sidebar on the repository index page |
| |
90 | #index-info= |
| |
91 | |
| |
92 | |
| |
93 | ## If specified, the file at this path will be included as HTML above |
| |
94 | ## the repository index |
90 | #index-header= |
95 | #index-header= |
91 | |
96 | |
92 | |
97 | |
93 | ## Link to css file |
98 | ## Link to css file |
94 | #css=/cgit/cgit.css |
99 | #css=/cgit/cgit.css |
95 | |
100 | |
96 | |
101 | |
97 | ## Link to logo file |
102 | ## Link to logo file |
98 | #logo=/cgit/git-logo.png |
103 | #logo=/cgit/git-logo.png |
99 | |
104 | |
100 | |
105 | |
101 | ## Url loaded when clicking the logo |
106 | ## Url loaded when clicking the logo |
102 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ |
107 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ |
103 | |
108 | |
104 | |
109 | |
105 | ## Url loaded when clicking a submodule link |
110 | ## Url loaded when clicking a submodule link |
106 | #module-link=./?repo=%s&page=commit&id=%s |
111 | #module-link=./?repo=%s&page=commit&id=%s |
107 | |
112 | |
108 | |
113 | |
109 | ## Number of chars shown of repo description (in repolist view) |
114 | ## Number of chars shown of repo description (in repolist view) |
110 | #max-repodesc-length=60 |
115 | #max-repodesc-length=60 |
111 | |
116 | |
112 | |
117 | |
113 | ## Number of chars shown of commit subject message (in log view) |
118 | ## Number of chars shown of commit subject message (in log view) |
114 | #max-message-length=60 |
119 | #max-message-length=60 |
115 | |
120 | |
116 | |
121 | |
117 | ## Number of commits per page in log view |
122 | ## Number of commits per page in log view |
118 | #max-commit-count=50 |
123 | #max-commit-count=50 |
119 | |
124 | |
120 | |
125 | |
121 | ## Root of cached output |
126 | ## Root of cached output |
122 | #cache-root=/var/cache/cgit |
127 | #cache-root=/var/cache/cgit |
123 | |
128 | |
124 | |
129 | |
125 | ## Include another config-file |
130 | ## Include another config-file |
126 | #include=/var/cgit/repolist |
131 | #include=/var/cgit/repolist |
127 | |
132 | |
128 | ## |
133 | ## |
129 | ## Time-To-Live settings: specifies how long (in minutes) different pages |
134 | ## Time-To-Live settings: specifies how long (in minutes) different pages |
130 | ## should be cached (0 for instant expiration, -1 for immortal pages) |
135 | ## should be cached (0 for instant expiration, -1 for immortal pages) |
131 | ## |
136 | ## |
132 | |
137 | |
133 | ## ttl for root page |
138 | ## ttl for root page |
134 | #cache-root-ttl=5 |
139 | #cache-root-ttl=5 |
135 | |
140 | |
136 | ## ttl for repo summary page |
141 | ## ttl for repo summary page |
137 | #cache-repo-ttl=5 |
142 | #cache-repo-ttl=5 |
138 | |
143 | |
139 | ## ttl for other dynamic pages |
144 | ## ttl for other dynamic pages |
140 | #cache-dynamic-ttl=5 |
145 | #cache-dynamic-ttl=5 |
141 | |
146 | |
142 | ## ttl for static pages (addressed by SHA-1) |
147 | ## ttl for static pages (addressed by SHA-1) |
143 | #cache-static-ttl=-1 |
148 | #cache-static-ttl=-1 |
144 | |
149 | |
145 | |
150 | |
146 | |
151 | |
147 | ## Example repository entry. Required values are repo.url and repo.path (each |
152 | ## Example repository entry. Required values are repo.url and repo.path (each |
148 | ## repository section must start with repo.url). |
153 | ## repository section must start with repo.url). |
149 | #repo.url=cgit |
154 | #repo.url=cgit |
150 | #repo.name=cgit |
155 | #repo.name=cgit |
151 | #repo.desc=the caching cgi for git |
156 | #repo.desc=the caching cgi for git |
152 | #repo.path=/pub/git/cgit ## this is the path to $GIT_DIR |
157 | #repo.path=/pub/git/cgit ## this is the path to $GIT_DIR |
153 | #repo.owner=Lars Hjemli |
158 | #repo.owner=Lars Hjemli |
154 | #repo.defbranch=master ## define a default branch |
159 | #repo.defbranch=master ## define a default branch |
155 | #repo.snapshots=tar.bz2 ## override a sitewide snapshot-setting |
160 | #repo.snapshots=tar.bz2 ## override a sitewide snapshot-setting |
156 | #repo.enable-log-filecount=0 ## override the default filecount setting |
161 | #repo.enable-log-filecount=0 ## override the default filecount setting |
157 | #repo.enable-log-linecount=0 ## override the default linecount setting |
162 | #repo.enable-log-linecount=0 ## override the default linecount setting |
158 | #repo.module-link=/git/%s/commit/?id=%s ## override the standard module-link |
163 | #repo.module-link=/git/%s/commit/?id=%s ## override the standard module-link |
159 | #repo.readme=info/web/readme ## specify a file to include on summary page |
164 | #repo.readme=info/web/readme ## specify a file to include on summary page |
160 | |
165 | |
161 | ## Additional repositories grouped under "mirrors" |
166 | ## Additional repositories grouped under "mirrors" |
162 | #repo.group=mirrors |
167 | #repo.group=mirrors |
163 | |
168 | |
164 | #repo.url=git |
169 | #repo.url=git |
165 | #repo.path=/pub/git/git |
170 | #repo.path=/pub/git/git |
166 | # |
171 | # |
167 | #repo.url=linux |
172 | #repo.url=linux |
168 | #repo.path=/pub/git/linux |
173 | #repo.path=/pub/git/linux |
169 | |
174 | |
170 | ## A group of private repositories (with a working directory) |
175 | ## A group of private repositories (with a working directory) |
171 | #repo.group=private |
176 | #repo.group=private |
172 | |
177 | |
173 | #repo.url=larsh/cgit |
178 | #repo.url=larsh/cgit |
174 | #repo.path=/home/larsh/src/cgit/.git |
179 | #repo.path=/home/larsh/src/cgit/.git |
175 | |
180 | |
176 | #repo.url=larsh/git |
181 | #repo.url=larsh/git |
177 | #repo.path=/home/larsh/src/git/.git |
182 | #repo.path=/home/larsh/src/git/.git |
|