Pick up git-browser multiple scheme fix
[girocco.git] / gitweb / gitweb_config.perl
blob39d5db2669d2bffd4225da28e670ede8f3ea35d5
1 # Pull Girocco config
2 use lib ".";
3 use Girocco::Config;
4 use Girocco::Util;
5 use Digest::MD5 qw(md5_hex);
7 ## For the complete overview of available configuration options,
8 ## see git.git/gitweb/gitweb.perl file beginning (git.git/gitweb/README
9 ## may miss some custom patches, in theory).
11 # Whether to include project list on the gitweb front page; 0 means yes,
12 # 1 means no list but show tag cloud if enabled (all projects still need
13 # to be scanned, unless the info is cached), 2 means no list and no tag cloud
14 # (very fast)
15 our $frontpage_no_project_list = 1;
17 ## projects list cache for busy sites with many projects;
18 ## if you set this to non-zero, it will be used as the cached
19 ## index lifetime in minutes
20 our $projlist_cache_lifetime = 10;
22 ## default charset for text/plain blob
23 our $default_text_plain_charset = 'utf-8';
25 # Comment out to disable ctags
26 $feature{ctags}{default}=["@{[url_path($Girocco::Config::webadmurl)]}/tagproj.cgi"];
28 $feature{blame}{default}=[1];
30 $feature{'snapshot'}{'default'} = ['tgz', 'zip'];
33 ### You probably don't really want to tweak anything below.
35 # Base web path
36 our $my_uri = url_path($Girocco::Config::gitweburl);
38 # https hint html inserted right after any https push URL (undef for none)
39 # e.g. "<a href="https_push_instructions.html">https push instructions</a>"
40 our $https_hint_html = undef;
41 $https_hint_html = substr(<<HINT,0,-1) if $Girocco::Config::httpspushurl;
42 <sup><a href="@{[url_path($Girocco::Config::htmlurl)]}/httpspush.html">(learn more)</a></sup>
43 HINT
45 # owner link hook given owner name (full and NOT obfuscated)
46 # should return full URL-escaped link to attach to owner, for example:
47 # sub { return "/showowner.cgi?owner=".CGI::Util::escape($_[0]); }
48 our $owner_link_hook = undef;
49 $owner_link_hook = sub { url_path($Girocco::Config::webadmurl)."/projlist.cgi?name=".md5_hex($_[0]); };
51 ## core git executable to use
52 ## this can just be "git" if your webserver has a sensible PATH
53 our $GIT = $Girocco::Config::git_bin;
55 ## absolute fs-path which will be prepended to the project path
56 our $projectroot = $Girocco::Config::reporoot;
57 # source of projects list
58 our $projects_list = $Girocco::Config::chroot."/etc/gitweb.list";
60 ## target of the home link on top of all pages
61 our $home_link = url_path($Girocco::Config::gitweburl);
63 ## string of the home link on top of all pages
64 our $home_link_str = $Girocco::Config::name;
66 ## name of your site or organization to appear in page titles
67 ## replace this with something more descriptive for clearer bookmarks
68 our $site_name = $Girocco::Config::title;
69 ## html text to include at home page
70 our $home_text = "$Girocco::Config::webroot/indextext.html";
72 ## URI of stylesheets
73 our @stylesheets = ("@{[url_path($Girocco::Config::gitwebfiles)]}/gitweb.css");
74 ## URI of GIT logo (72x27 size)
75 our $logo = "@{[url_path($Girocco::Config::gitwebfiles)]}/git-logo.png";
76 ## URI of GIT favicon, assumed to be image/png type
77 our $favicon = "@{[url_path($Girocco::Config::gitwebfiles)]}/git-favicon.png";
78 ## URI of blame.js
79 our $blamejs = "@{[url_path($Girocco::Config::gitwebfiles)]}/blame.js";
80 ## URI of gitweb.js
81 our $gitwebjs = "@{[url_path($Girocco::Config::gitwebfiles)]}/gitweb.js";
83 ## list of git base URLs used for URL to fetch project from,
84 ## i.e. full URL is "$git_base_url/$project"
85 our @git_base_url_list = ();
86 $Girocco::Config::gitpullurl and push @git_base_url_list, $Girocco::Config::gitpullurl;
87 $Girocco::Config::httppullurl and push @git_base_url_list, $Girocco::Config::httppullurl;
89 ## list of git base URLs used for URL to push project to,
90 ## i.e. full URL is "$git_base_push_url/$project"
91 our @git_base_push_urls = ();
92 $Girocco::Config::pushurl and push @git_base_push_urls, $Girocco::Config::pushurl;
93 $Girocco::Config::httpspushurl and push @git_base_push_urls, $Girocco::Config::httpspushurl;
95 our $cache_grpshared = 1;
96 our $cache_dir = $Girocco::Config::chroot.'/etc';
98 $feature{pathinfo}{default}=[1];
100 $feature{forks}{default}=[1];
102 $feature{actions}{default}=[
103 ('graphiclog', "@{[url_path($Girocco::Config::gitwebfiles)]}/git-browser/by-commit.html?r=%n", 'log'),
104 ('edit', "@{[url_path($Girocco::Config::webadmurl)]}/editproj.cgi?name=%n", 'refs'),
105 ('fork', "@{[url_path($Girocco::Config::webadmurl)]}/regproj.cgi?fork=%n", 'edit')