git: Refactor hierarcy and names

git/client is now git and in software submodule
git/server is now git-server
This commit is contained in:
Timo Makinen 2021-08-31 19:21:52 +00:00
parent e13b87324c
commit 90142649d7
13 changed files with 6 additions and 44 deletions

View file

@ -0,0 +1,26 @@
# git clone http support
SetEnv GIT_PROJECT_ROOT /srv/git
SetEnv GIT_HTTP_EXPORT_ALL
# gitweb settings
SetEnv GITWEB_PROJECTROOT /srv/git
Alias /static/ /var/www/git/static/
#AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /srv/git/$1
#AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /srv/git/$1
<Directory /usr/libexec/git-core>
Require all granted
</Directory>
ScriptAliasMatch \
"(?x)^/(.*/(HEAD | \
info/refs | \
objects/info/[^/]+ | \
git-(upload|receive)-pack))$" \
/usr/libexec/git-core/git-http-backend/$1
ScriptAlias /gitweb.cgi /var/www/git/gitweb.cgi
<Location />
DirectoryIndex gitweb.cgi
</Location>

View file

@ -0,0 +1,24 @@
body {
margin: 0px;
}
img.logo {
height: 50px;
width: 172px;
float: left;
margin-right: 50px;
}
div.page_header {
background: #000;
height: 50px;
padding-top: 15px;
padding-left: 0px;
padding-bottom: 0px;
color: #fff;
}
div.page_header a:visited {
color: #fff;
}

View file

@ -0,0 +1,26 @@
# read git repo root from env or use default
our $projectroot = $ENV{'GITWEB_PROJECTROOT'};
# site name
our $site_name = "foo.sh - Public GIT repositories";
# add custom css
push @stylesheets, "/static/gitweb-local.css";
our $logo = "/static/logo.png";
our $logo_label = "https://www.foo.sh/";
# base urls
our $logo_url = "https://www.foo.sh/";
our $home_link = "https://git.foo.sh";
our $home_link_str = "https://git.foo.sh";
# avatar support
$feature{"avatar"}{"default"} = ["gravatar"];
# add support for bz2 and zip snapshots
$feature{"snapshot"}{"default"} = ["tgz", "tbz2", "zip"];
# syntax highlight (rhel8 supports detection without known extension)
$highlight_bin = "highlight";
$feature{"highlight"}{"defaut"} = [1];

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB