chiark / gitweb /
git-daemon-vhosts.pl: A sample virtual host configuration file.
authorTony Finch <dot@dotat.at>
Fri, 26 Mar 2010 17:16:34 +0000 (17:16 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 22 May 2010 14:54:40 +0000 (15:54 +0100)
git-daemon/git-daemon-vhosts.pl [new file with mode: 0644]

diff --git a/git-daemon/git-daemon-vhosts.pl b/git-daemon/git-daemon-vhosts.pl
new file mode 100644 (file)
index 0000000..4c6fb62
--- /dev/null
@@ -0,0 +1,31 @@
+# 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
+
+# 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 host does not appear in the vhost_user_from_tilde hash.
+# If a virtual host does not appear in this hash then URLs without a
+# tilde part are forbidden for that virtual host.
+
+%vhost_default_user = (
+       'dotat.at' => 'fanf',
+);
+
+# The vhost_user_from_tilde hash lists which virtual hosts allow the
+# tilde part to specify the user that should handle the request. If a
+# virtual host is not present in this hash then its default user
+# handles all requests. If a virtual host is not present in either map
+# then no requests are permitted.
+
+%vhost_user_from_tilde = (
+       'chiark.greenend.org.uk' => 1,
+);
+
+# end