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