chiark / gitweb /
git-daemon: config improvements
[userv-utils.git] / git-daemon / git-daemon-urlmap.pl
1 # Configuration file for the userv git daemon.
2 #
3 # This was written by Tony Finch <dot@dotat.at>
4 # You may do anything with it, at your own risk.
5 # http://creativecommons.org/publicdomain/zero/1.0/
6
7 use warnings;
8 use strict;
9
10 my $g = qr{[0-9a-z_-]+[.]git};
11 my $u = qr{[0-9a-z]+};
12
13 return "~fanf/public-git/$1", "fanf"      if m{^git://dotat[.]at/($g)$};
14 return "/u2/git-repos$1",     "webmaster" if m{^git://git[.]chiark[.]greenend[.]org[.]uk/($g)$};
15 return "~$1/public-git/$2",   "$1"        if m{^git://git[.]chiark[.]greenend[.]org[.]uk/~($u)/($g)$};
16 return "~$1/cabal-git/$2",    "$1"               if m{^git://cabal[.]greenend[.]org[.]uk/~($u)/($g)$};
17
18 return;
19
20 # end