# Configuration file for the userv git daemon.
#
# This was written by Tony Finch <dot@dotat.at>
# You may do anything with it, at your own risk.
# http://creativecommons.org/publicdomain/zero/1.0/

# The userv git daemon supports URLs of the forms:
#	git://HOSTNAME/REPO.git
#	git://HOSTNAME/~TILDE/REPO.git

$HOSTNAME = qr{[-.0-9a-z]+};
$TILDE    = qr{[0-9a-z]+};
$REPO     = qr{[-+._0-9A-Za-z]+};

# The vhost_default_user hash specifies what user handles git requests
# for each virtual host, if the URL does not have a tilde part, or if
# the virtual hosts does not appear in either vhost_tilde hash. If a
# virtual host does not appear in this hash then it does not permit
# URLs without tilde parts.

%vhost_default_user = (
	'dotat.at' => 'fanf',
);

# The vhost_tilde_is_user hash specifies which virtual hosts use the
# tilde part of a URL to specify the user that handles the request.

%vhost_tilde_is_user = (
	'chiark.greenend.org.uk' => 1,
);

# The vhost_tilde_forbidden hash specifies which virtual hosts do not
# permit URLs with tilde parts.

%vhost_tilde_forbidden = (
	'dotat.at' => 1,
);

# end
