chiark / gitweb /
git-daemon: simplify xread()
[userv-utils.git] / git-daemon / git-daemon-vhosts.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 # The userv git daemon supports URLs of the forms:
8 #       git://HOSTNAME/REPO.git
9 #       git://HOSTNAME/~TILDE/REPO.git
10
11 $HOSTNAME = qr{[-.0-9a-z]+};
12 $TILDE    = qr{[0-9a-z]+};
13 $REPO     = qr{[-+._0-9A-Za-z]+};
14
15 # The vhost_default_user hash specifies what user handles git requests
16 # for each virtual host, if the URL does not have a tilde part, or if
17 # the virtual host does not appear in the vhost_user_from_tilde hash.
18 # If a virtual host does not appear in this hash then URLs without a
19 # tilde part are forbidden for that virtual host.
20
21 %vhost_default_user = (
22         'dotat.at' => 'fanf',
23 );
24
25 # The vhost_user_from_tilde hash lists which virtual hosts allow the
26 # tilde part to specify the user that should handle the request. If a
27 # virtual host is not present in this hash then its default user
28 # handles all requests. If a virtual host is not present in either map
29 # then no requests are permitted.
30
31 %vhost_user_from_tilde = (
32         'chiark.greenend.org.uk' => 1,
33 );
34
35 # end