Added global conf option "archive_prefix".
[viewgit.git] / inc / config.php
blobdd5022ee88591bf66267bdcdce31ba07cc9c67f9
1 <?php
2 /** @file
3 * Configuration file for viewgit.
5 * @note DO NOT EDIT THIS FILE. Create localconfig.php instead and override the settings in it.
6 */
7 $conf['projects'] = array(
8 // 'name' => array('repo' => '/path/to/repo'),
9 );
11 // Where git is. Default is to search from PATH, but you can use an absolute
12 // path as well.
13 $conf['git'] = 'git';
15 // If set, contains an array of globs/wildcards where to include projects.
16 // Use this if you have a lot of projects under a directory.
17 //$conf['projects_glob'] = array('/path/to/*/.git', '/var/git/*.git');
19 // Prefix for tar/gz & zip archives generated. Default is to use the project
20 // name. Can be overridden in project config.
21 $conf['archive_prefix'] = '{PROJECT}';
23 $conf['datetime'] = '%Y-%m-%d %H:%M';
25 // More complete format for commit page
26 $conf['datetime_full'] = '%Y-%m-%d %H:%M:%S';
28 // Maximum length of commit message's first line to show
29 $conf['commit_message_maxlen'] = 50;
31 // Maximum number of shortlog entries to show on the summary page
32 $conf['summary_shortlog'] = 15;
34 // Maximum number of tags to show on the summary page
35 $conf['summary_tags'] = 10;
37 // Whether to show remote labels on shortlog
38 $conf['shortlog_remote_labels'] = false;
40 // Allow checking out projects via "git clone"
41 $conf['allow_checkout'] = true;
43 // If set, this function is used to obfuscate e-mail addresses of authors/committers
44 // The 'obfuscate_mail' function simply replaces @ with ' at ' and . with ' dot '
45 //$conf['mail_filter'] = 'obfuscate_mail';
46 //$conf['mail_filter'] = create_function('$mail', 'return str_rot13(strtoupper($mail));');
48 // Whether to use GeSHi for source highlighting
49 $conf['geshi'] = false;
51 // Path to geshi.php
52 //$conf['geshi_path'] = 'inc/geshi/geshi.php';
53 //$conf['geshi_path'] = '/usr/share/php-geshi/geshi.php'; // Path on Debian
55 // Use line numbers in geshi?
56 // Setting this to "false" disables line numbers
57 // Using a value of 0 will enable "NORMAL" geshi line numbers
58 // Using values of 1 or more will enable "FANCY" geshi line numbers
59 $conf['geshi_line_numbers'] = 5;
61 // RSS time to live (how often clients should update the feed), in minutes.
62 $conf['rss_ttl'] = 10;
64 // RSS: Maximum number of items in feed
65 $conf['rss_max_items'] = 30;
67 // RSS item format. Allowed formatting:
68 // {AUTHOR}, {AUTHOR_MAIL}, {SHORTLOG}, {LOG}, {COMMITTER}, {COMMITTER_MAIL}, {DIFFSTAT}
69 $conf['rss_item_title'] = '{SHORTLOG} ({AUTHOR})';
70 $conf['rss_item_description'] = '<pre>{LOG}</pre><b>{AUTHOR}</b> &lt;{AUTHOR_MAIL}&gt;<br /><pre>{DIFFSTAT}</pre>';
72 $conf['debug'] = false;
73 $conf['debug_command_trace'] = false;
75 // Includes a small link to the ViewGit homepage on each page
76 $conf['ad'] = true;
78 // If auth_lib is set, inc/auth_<auth_lib>.php must exist and include a function
79 // named auth_check(). The function should check any required global variables
80 // (such as $_REQUEST, $_SERVER['PHP_AUTH_USER']) and die() if access is denied.
82 // For a simple username/password authorisation you can use auth_simple, see
83 // inc/auth_simple.php for more info. The array is username => md5 hash.
84 //$conf['auth_lib'] = 'simple';
85 //$conf['auth_simple_users'] = array('test' => 'd7b58f27f98f47bacd60fa87efe822ba');
87 // Uncomment the following lines to authenticate using some drupal site's
88 // config
89 //$conf['auth_lib'] = 'drupal_user';
90 //$conf['drupal_site_config'] = '/var/www/sites/default/settings.php';
92 // Which stylesheet to use
93 $conf['style'] = 'default';
95 if (!@include_once('localconfig.php')) {
96 header("Content-type: text/plain");
97 echo "ViewGit has not been configured yet, please read doc/README for installation instructions:\n\n";
98 require_once('doc/README');
99 die();