git-daemon/chiark-urlmap: better security
[userv-utils] / git-daemon / chiark-urlmap
1 # chiark's configuration 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 if ($host eq 'git.chiark.greenend.org.uk') {
8 if ($path =~ m{^~([^/]*)/(.*)}) {
9 $user = $1;
10 $dir = '.userv/public-git';
11 $repo = $2;
12 } else {
13 $user = 'webmaster';
14 $dir = '/u2/git-repos';
15 $repo = $path;
16 }
17 } elsif ($server_addr eq '172.31.80.8' and
18 $host eq 'cabal.greenend.org.uk' and
19 $path =~ m|^~([^/]*)/(.*)$|) {
20 $user = $1;
21 $dir = 'cabal-git';
22 $repo = $2;
23 } elsif ($host eq 'dotat.at') {
24 $user = 'fanf';
25 $dir = 'public-git';
26 $repo = $path;
27 }
28
29 # end