cgi/html.cgi: Introduce simple template engine
[girocco.git] / Girocco / Config.pm
blob54c26d00e88141037aa7ae50e5d2a964477664f2
1 package Girocco::Config;
3 use strict;
4 use warnings;
7 ## Basic settings
9 # Name of the service
10 our $name = "repo.or.cz";
12 # Title of the service (as shown in gitweb)
13 our $title = "Public Git Hosting";
15 # Legal jurisdiction of the site
16 our $jurisdiction = "Czech Republic";
18 # Path to the Git binary to use (you MUST set this, even if to /usr/bin/git!)
19 our $git_bin = '/home/pasky/bin/git';
22 ## Feature knobs
24 # Enable mirroring mode if true
25 our $mirror = 1;
27 # Enable push mode if true
28 our $push = 1;
30 # Enable the special 'mob' user if set to 'mob'
31 our $mob = "mob";
34 ## Permission settings
36 # UNIX group owning the repositories
37 our $group = 'repo';
40 ## Paths
42 # Path to the Girocco files (checkout of this project)
43 our $basedir = '/home/repo/repomgr';
45 # Path to the directory of the mirror queue (undef if not $mirror)
46 our $mqueuedir = '/home/repo/repodata';
48 # The repository collection
49 our $gcgiroot = "/srv/git";
51 # chroot for ssh pushing (undef if N/A)
52 our $chroot = "/home/repo/j";
55 ## URL addresses
57 # URL of the gitweb.cgi script (must be in pathinfo mode)
58 our $gitweburl = "http://repo.or.cz/w";
60 # URL of the extra gitweb files (CSS, .js files, images, ...)
61 our $gitwebpath = "http://repo.or.cz/";
63 # URL of the Girocco CGI web admin interface (Girocco cgi/ subdirectory)
64 our $webadmurl = "http://repo.or.cz/m";
66 # HTTP URL of the repository collection (undef if N/A)
67 our $httppullurl = "http://repo.or.cz/r";
69 # Git URL of the repository collection (undef if N/A)
70 our $gitpullurl = "git://repo.or.cz/";
72 # Pushy URL of the repository collection (undef if N/A)
73 our $pushurl = "ssh://repo.or.cz/srv/git";
75 # URL of gitweb of this Girocco instance (set to undef if you're not nice
76 # to the community)
77 our $giroccourl = "$Girocco::Config::gitweburl/repo.git";
79 # URL of the explanation of the mob user (undef if not $mob)
80 our $moburl = "/h/mob.html";