From 5d2435d4600f02d70fe1c4fa66c502b9f17d7cd9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 19 Feb 2008 16:52:24 +0000 Subject: [PATCH] * Top-level redirect to the repoman. svn path=/nixos/trunk/; revision=10758 --- upstart-jobs/apache-httpd/subversion.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/upstart-jobs/apache-httpd/subversion.nix b/upstart-jobs/apache-httpd/subversion.nix index d561cd4c652..d75e69c5524 100644 --- a/upstart-jobs/apache-httpd/subversion.nix +++ b/upstart-jobs/apache-httpd/subversion.nix @@ -301,6 +301,12 @@ in { ${distConfig} ${staticFilesConfig} + + ${if config.toplevelRedirect then '' + + DirectoryIndex repoman + + '' else ""} ''; @@ -341,6 +347,15 @@ in { "; }; + toplevelRedirect = mkOption { + default = true; + description = " + Whether urlPrefix without any suffix + (except a slash) should redirect to + urlPrefix/repoman. + "; + }; + notificationSender = mkOption { default = "svn-server@example.org"; example = "svn-server@example.org";