Bump version
[gitphp.git] / config / gitphp.conf.php.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<?php
/*
 *  gitphp.conf.php
 *  gitphp: A PHP git repository browser
 *  Component: Configuration
 *
 *  Copyright (C) 2006 Christopher Han <xiphux@gmail.com>
 */

/*
 * projectroot
 * Absolute filesystem path prepended to project paths
 * (don't forget trailing slash!)
 */
//$gitphp_conf['projectroot'] = "/pub/gitprojects/";




/*
 * stylesheet
 * Path to page stylesheet
 */
$gitphp_conf['stylesheet'] = "gitphp.css";

/*
 * gitbin
 * Path to git binary
 * For example, /usr/bin/git on Linux
 * or C:\\Program Files\\Git\\bin\\git.exe on Windows
 * with msysgit.  You can also omit the full path and just
 * use the executable name to search the user's $PATH.
 * Note: Versions of PHP below 5.2 have buggy handling of spaces
 * in paths.  Use the 8.3 version of the filename if you're
 * having trouble, e.g. C:\\Progra~1\\Git\\bin\\git.exe
 */
$gitphp_conf['gitbin'] = "/usr/bin/git";

/*
 * diffbin
 * Path to diff binary
 * Same rules as gitbin
 * Windows (msysgit): C:\\Progra~1\\Git\\bin\\diff.exe
 */
$gitphp_conf['diffbin'] = "/usr/bin/diff";

/*
 * gittmp
 * Location for temporary files for diffs
 * (don't forget trailing slash!)
 */
$gitphp_conf['gittmp'] = "/tmp/";

/*
 * title
 * The string that will be used as the page title
 * The variable '$gitphp_appstring' will expand to
 * the name (gitphp) and version
 * The variable '$gitphp_version' will expand to the
 * version number only
 */
$gitphp_conf['title'] = "$gitphp_appstring";

/*
 * self
 * This is the path to the script that will be inserted
 * in urls.  If you leave this blank/commented the script
 * will try to guess the correct URL, but you can override
 * it here if it's not being guessed correctly.
 *
 * If only specifying the directory path (and omitting the
 * index.php filename), make sure to include the trailing
 * slash!
 */
//$gitphp_conf['self'] = "http://localhost/gitphp/";

/*
 * smarty_prefix
 * This is the prefix where smarty is installed.
 * (including trailing slash)
 * If an absolute (starts with /) path is given,
 * Smarty.class.php will be searched for in that directory.
 * If a relative (doesn't start with /) path is given,
 * that subdirectory inside the php include dirs will be
 * searched.  So, for example, if you specify the path as
 * "/usr/share/Smarty/" then the script will look for
 * /usr/share/Smarty/Smarty.class.php.
 * If you specify the path as "smarty/" then it will search
 * the include directories in php.ini's include_path directive,
 * so it would search in places like /usr/share/php and /usr/lib/php:
 * /usr/share/php/smarty/Smarty.class.php,
 * /usr/lib/php/smarty/Smarty.class.php, etc.
 * Leave blank to just search in the root of the php include directories
 * like /usr/share/php/Smarty.class.php, /usr/lib/php/Smarty.class.php, etc.
 */
$gitphp_conf['smarty_prefix'] = "lib/smarty/libs/";

/*
 * compressformat
 * Indicates what kind of compression will be done on the
 * snapshot archive.  Recognized settings are:
 *
 * GITPHP_COMPRESS_BZ2 - create a tar.bz2 file (php must have bz2 support)
 * GITPHP_COMPRESS_GZ - create a tar.gz file (php must have gzip support)
 * GITPHP_COMPRESS_ZIP - create a zip file
 *
 * Any other setting, or no setting, will create uncompressed tar archives
 * If you choose a compression format and your php does not support it,
 * gitphp will fall back to uncompressed tar archives
 */
$gitphp_conf['compressformat'] = GITPHP_COMPRESS_ZIP;

/*
 * compresslevel
 * Sets the compression level for snapshots.  Ranges from 1-9, with
 * 9 being the most compression but requiring the most processing
 * (bzip defaults to 4, gzip defaults to -1)
 */
$gitphp_conf['compresslevel'] = 9;

/*
 * geshi
 * Run blob output through geshi syntax highlighting
 * and line numbering
 */
$gitphp_conf['geshi'] = TRUE;

/*
 * geshiroot
 * Directory where geshi is installed
 * NOTE: this is the path to the base geshi.php file to include,
 * NOT the various other geshi php source files!
 * Leave blank if geshi.php is in the gitphp root
 * (don't forget trailing slash!)
 */
$gitphp_conf['geshiroot'] = "lib/geshi/";

/*
 * filemimetype
 * Attempt to read the file's mimetype when displaying
 * (for example, displaying an image as an actual image
 *  in a browser)
 * This requires either PHP >= 5.3.0, PECL fileinfo, or
 * Linux
 */
$gitphp_conf['filemimetype'] = TRUE;

/*
 * magicdb
 * Path to the libmagic db used to read mimetype
 * You can leave this as null and let the system
 * try to find the database for you, but that method
 * is known to have issues
 * If the path is correct but it's still not working,
 * try removing the file extension if you have it on,
 * or vice versa
 */
$gitphp_conf['magicdb'] = "/usr/share/misc/magic.mgc";
//$gitphp_conf['magicdb'] = "C:\\wamp\\php\\extras\\magic";  // Windows

/*
 * search
 * Set this to false or comment it out to disable searching
 */
$gitphp_conf['search'] = TRUE;

/*
 * filesearch
 * Set this to false to disable searching within files
 * (it can be resource intensive)
 */
$gitphp_conf['filesearch'] = TRUE;

/*
 * debug
 * Turns on extra warning messages and benchmarking.
 * Not recommended for production systems
 */
$gitphp_conf['debug'] = FALSE;

/*
 * cache
 * Turns on smarty caching
 * Be careful with this.  If in doubt, leave it off
 */
$gitphp_conf['cache'] = FALSE;

/*
 * cacheexpire
 * Attempts to automatically expire cache when a new commit renders
 * it out of date.
 * This is a good option for most users because it ensures the cache
 * is always up to date and users are seeing correct information,
 * although it is a slight performance hit.
 * However, if your commits are coming in so quickly that the cache
 * is constantly being expired, turn this off.
 */
$gitphp_conf['cacheexpire'] = TRUE;

/*
 * cachelifetime
 * Sets how long a page will be cached, in seconds
 * If you are automatically expiring the cache
 * (see the 'cacheexpire' option above), then this can be set
 * relatively high - 3600 seconds (1 hour) or even longer.
 * -1 means no timeout.
 * If you have turned cacheexpire off because of too many
 * cache expirations, set this low (5-10 seconds).
 */
$gitphp_conf['cachelifetime'] = 3600;

/*
 * cloneurl
 * Sets the base clone url to display for a project.
 * This is the publicly-accessible url of the projectroot
 * that gets prepended to the project path to create the clone
 * url.  It can be any format, for example:
 *
 * http://server.com/
 * ssh://server.com/git/
 * git://server.com/gitprojects/
 * (don't forget trailing slash)
 * 
 * If left blank/commented, no clone url will display.
 */
//$gitphp_conf['cloneurl'] = "http://localhost/git/";

/*
 * pushurl
 * Sets the base push url to display for a project.
 * Works the same as cloneurl.
 */
//$gitphp_conf['pushurl'] = "ssh://localhost/git/";

/*
 * git_projects
 * List of projects
 *
 * There are three ways to list projects:
 *
 * 1. Two dimensional array of projects with categories
 * First array index is the name of the category the projects
 * belong to, and the second array index is a human-readable
 * name for the project (not used, just for organizational
 * purposes), and the value is the path to the project
 * (minus the projectroot).
 * Any projects belonging to the special category "none"
 * will be listed without a category.
 */
//$git_projects['Core']['FBX'] = "core/fbx.git";
//$git_projects['PHP']['gitphp'] = "php/gitphp.git";
//$git_projects['PHP']['MDB'] = "php/mdb.git";
//$git_projects['PHP']['xxcache'] = "php/xxcache.git";
//$git_projects['Websites']['bth'] = "websites/bth.git";

/*
 * 2. Path to file with list of projects
 * Points to a flat file with a list of projects,
 * one on each line. Can also read Gitosis project lists.
 */
//$git_projects = "/git/projectlist.txt";

/*
 * 3. Leave commented to read all projects in the project root
 */

?>

comments